jquery - JavaScript: get and set variables in window.location.hash? -


does have solution getting , setting variables in window.location.hash?

take url looks this:

domain.com/#q=1&s=2 

what i'd unstressful way - javascript or jquery - check values of q , s when page loads, , change them following events on page.

i have found some code getting hash variables, nothing sensible setting them.

am missing obvious, or need roll own solution (and release it!)?

thanks.

jquery bbq can this.

see also:


edit @gonchuki points out, jquery.query can this.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -