SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2008
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy How to handle Browser back button event

    Hi friends,

    I have one requiremnt,i.e, How to handle the browser back button event, when User click on the Browser Back button, i need to redirecting the our custom page, i.e Error page.

    If any one know please tell, it is very urgent for me.

    Thanks and Regards

    Swamy VNVS

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    You web site breaks the expected use of the browser's back button? That is a problem.

    For security reasons, scripting is not allowed to change the browser history.
    If you absolutely must clear the history for a page, ensure that the page is opened as a new window, so that no previous page is set.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •