title: How to disable the browser Forward button using javascript
body: <p>I have created a quiz application in which there are five different pages. I have handled session and prevent back button after login. But I am quite new to javascript, so how to disable the browser forward button. i.e. if the user is in QuizPage1.jsp, he/she should not access forward button in the browser..They have to press the submit button after answering those quizes. I checked many questions in stackoverflow regarding this. But, I found solution for disabling back button only. 
  So, Your help is highly appreciated. Thanks in Advance.</p>
  
  <p><img src="https://i.stack.imgur.com/XDxFZ.png" alt="enter image description here"></p>