Disabling/Enabling back and forward buttons on browser

Discussions

Web tier: servlets, JSP, Web frameworks: Disabling/Enabling back and forward buttons on browser

  1. Disabling/Enabling back and forward buttons on browser (1 messages)

    Is there a way to prevent a user from doing back and forward (e.g. a user logs on and then walks away from the
    machine). Someone else walks up and uses the back and
    forward buttons to look at what the user had seen.

    Can this be done programatically in jsp/or in the webserver config.

    Thanks in advance.

    Ben
  2. You can achieve your objective in another way.
    Create a window without the toolbar(javascript).So back and forward buttons will not be available.
    Even after doing this one can go back by right clicking the page and choosing the back option in the popup menu.
    To avoid this you have to write code in javascript so that the right click is captured and the click event is thrown away without any action.

    sam