Possible Duplicate:
Handle URL anchor change event in js
Is it possible to have a javascript function run via an anchor tag.
E.g. if you went to… http://www.site.com/index.html#function1 … Then function1 would run?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Put a an onload listener on the page and a click listener on the link that goes to the anchor. When fired, check window.location.href, something like: