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