how to remove only current page from browser histry.... actually in my application(asp .net) browser is caching the current page so that when i click on browser back button, page remain same.. if i double click on browser back button then it navigate to previous page...
how to remove only current page from browser histry
Collapse
X
-
Tags: None
-
Cache and history are different things.
For cache, you can set headers (Google for ASP headers) or by giving a random GET parameter each time you link to the page.
For history, you need to use location.replac e somehow where it fits your algorithm.
[EDIT: this might not be what you actually looking for. I didn't read the problem carefully before answering this.] -
Or what is apparent is you have link(s) in the page with unlinked hash values (#someanchor) where someanchor is not present in the page.
If that's the case, you might want to add "return false;" at end of the code being called in onclick attribute of that link.
eg. <a href="#someanch or" onclick="myFunc tion(); return false;">Do this</a>Comment
Comment