Utilizing back and forward browser buttons for web apps
Posted
by
at
on Stack Overflow
See other posts from Stack Overflow
or by at
Published on 2011-03-18T00:05:16Z
Indexed on
2011/03/18
0:10 UTC
Read the original article
Hit count: 123
How do I use the back and forward browser buttons to navigate my javascript/jQuery web application? I know I can do window.location.href = 'this_url#placeholder'
and then perform the appropriate action. But when I do that, the browser scrolls to the element with that placeholder id (or to the top if there wasn't one). How do I get the browser to not scroll anywhere? I've seen this on other sites like facebook, what's the appropriate mechanism for this?
© Stack Overflow or respective owner