SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2008
    0 Post(s)
    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
    Christchurch, New Zealand
    104 Post(s)
    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


Posting Permissions

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