browser backbtn with javascript
<p>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 </p>

<p><strong>"Confirm Form Resubmission This web page requires data that you entered earlier in order to be properly displayed"</strong></p>

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

<p>I have handled the "onbeforeunload" event &amp; it's firing up too.</p>

<p>code snippet</p>

<p></p>

<p>Redirectpage
{
  javascript:window.history.forward(1);
}</p>

<p>but still am getting the same error?</p>

<p>thankyou folks.</p>
