Disable history.back

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gyanchand
    New Member
    • Jul 2007
    • 35

    Disable history.back

    I wouldn't want the user to use the History.Back option in a page by presssing backspace or on the popup menu.....back.. is there any method by whcih i can prevent the user from using history.back
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    Originally posted by Gyanchand
    I wouldn't want the user to use the History.Back option in a page by presssing backspace or on the popup menu.....back.. is there any method by whcih i can prevent the user from using history.back
    In ASP the best way to do this is to check for where a user has been at the top of every script (or in the global controls). you might consider using session variables etc. Let me know if this helps.

    Jared

    Comment

    Working...