I have been using hashes to pass data between pages (like setting scrollTop(), etc.) and have also used the hashChange event to trigger changes on a given page.
However, hashes have default behaviors that I’m not necessarily interested in, like making the page jump to a given (sometimes insignificant) spot.
I feel like getting/setting a query string would be more logical, but:
-
Is it?
-
Is there an event I can listen for when the query string is set?
-
Are there query-string-related behaviors I should know about?
scrollIntoView()for any element withid, there is a dedicated behaviour for<a name="xxx">). So, answer is yes here, page arguments should be passed via querystring.window.beforeunload, yes, page reload whenjavascript:void(location.search='some')has been setAlso, on working with querystring: http://xkr.us/js/querystring