Disabling the Back Button is not working in mozilla using window.history.forward(1)

Discussion in 'Programming' started by ashoknaina, Dec 6, 2012.

  1. #1
    Hi

    I used the following js code for disabling the back button of the browser " window.history.forward(1)" in my javascript method and I am calling that method in my jsp onload() event. It is working fine in IE but when I hit that url in mozilla or some other browser other than IE, the page is directing back and page is disturbing some what and after some 2 0r 3 sec it is again redirecting to the current page.

    I didnt understand why it is happening?

    I need a help on this. Pls help me and do needful on this. It was urgent actually.
     
    ashoknaina, Dec 6, 2012 IP