I am trying to make my site the correct answer to the back button. I saved this hash of what I want, but I don't know how to use jQuery to determine when the hash changes. This is not .ready () because the page is not reloading. What am i using?
Edit for clarity:
I use iframe, so I can not say when someone clicks on the link. It is on the same subdomain, so I can see its path to the file, and I save it so you can add bookmarks. Unfortunately, saving it as a hash, my back button no longer reboots, which prevents the iframe from reloading, so my back button is essentially broken. If there was a way to tell when the URI changes, I can check it for the iframe address and change it if they don't match.
All I need to do is check if the URI has changed. Is there a .change () for a URI? Something like that?
javascript jquery fragment-identifier
Ethan Sep 02 '09 at 18:02 2009-09-02 18:02
source share