Reset after using a link with parameters

Posted by CarolinaJay65 on Stack Overflow See other posts from Stack Overflow or by CarolinaJay65
Published on 2010-03-12T21:52:37Z Indexed on 2010/03/12 21:57 UTC
Read the original article Hit count: 187

Filed under:
|

I am using the window.location.search parameters (www.mysite.com?page=1) to direct the user to a specific page within the site. However, since those parameters are still in window.location (the browser) reset button continues to re-direct to the same page. I would like the reset button to re-direct to www.mysite.com

How do I clear the .search parameters so the (browser) reset button re-directs where I want? Is it done after the page is loaded? or after the (browser) reset button has been clicked?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery