how to remove only current page from browser histry

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • avinash sh
    New Member
    • Feb 2009
    • 38

    how to remove only current page from browser histry

    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...
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    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.]

    Comment

    • hsriat
      Recognized Expert Top Contributor
      • Jan 2008
      • 1653

      #3
      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

      Working...