I have a navigation menu with anchors in it, i.e. www.test.com/test.php#test. using the following code i can retreive the anchor value "#test" and display it on the page:
<script language="javascript" type="text/javascript"> var url = window.location.hash; document.write(url); </script>
the issue i am having is that. once i have clicked on a link with an anchor, the anchor is displayed but when i click on another link with an anchor the value is not updated. I am fairly new at javascript. i tried playing around with "window.location.reload()" but the page just kept reloading. Can anyone help.
any help will be appreciated

New Topic/Question
Reply



MultiQuote





|