browser backbtn with javascript

Posted by karthik on Stack Overflow See other posts from Stack Overflow or by karthik
Published on 2011-01-04T20:11:37Z Indexed on 2011/01/04 20:53 UTC
Read the original article Hit count: 159

Filed under:
|

Hi Folks, I am creating a quiz game in PHP. I maintain a session from the start to the end of the quiz. When the user clicks on the back button in the middle of the quiz It display a page with message

"Confirm Form Resubmission This web page requires data that you entered earlier in order to be properly displayed"

So, I m trying to keep it on the same page on click of back button

I have handled the "onbeforeunload" event & it's firing up too.

code snippet

Redirectpage { javascript:window.history.forward(1); }

but still am getting the same error?

thankyou folks.

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript