JavaScript: catching URI change
Posted
by ptrn
on Stack Overflow
See other posts from Stack Overflow
or by ptrn
Published on 2010-05-14T16:00:38Z
Indexed on
2010/05/14
16:04 UTC
Read the original article
Hit count: 605
I have a site where I'm using hash based parameters, eg.
http://url.of.site/#param1=123
What I want
When the user manually changes the URI to eg.
http://url.of.site/#param1=789
When the user enters this URI, the event is caught by the JavaScript, and the appropriate functions are called. Basically, what I'm wondering about is; is there an event listener for this? Or would I have to periodically check the URI to see if it has been changed?
I'm already using the current jQuery API, if that helps.
_L
© Stack Overflow or respective owner