Click here to Skip to main content
15,905,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If the url below is visited and the value after the hashtag 'about' (Refer to link below) is found, I would like a specific function to be triggered. How would I achieve this please?

http://www.site.com/index.html#about.html

This method is a way I figured I could control an animated header in my webpage when the back and forward browser buttons are used instead of the main menu which would otherwise control its animation states. I hope this all makes sense.
Posted
Updated 14-Sep-11 8:14am
v5
Comments
AspDotNetDev 14-Sep-11 17:50pm    
I'm glad I could help. For future reference, you should comment on the answer itself rather than creating a new answer.

1 solution

jQuery hashchange event would be one way. Or you could simply use window.location.hash.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900