<head> </head> <body> <div id='price'></div> <script> price.innerHTML = location.hash.substring(1) || location.pathname.split('/').pop(); </script> </body>