You will have a common header and that the timer will handle. your html element will dynamically change (use ajax for this) based on a user click next or back.
Itβs better to keep the question numbers hidden in the next and previous buttons. So, in an AJAX call, you can get the question number and go to the server to get this specific question. You can display it in a specific range or div tag.
<div id="questionId"> My question is here </div>
inside javascript
function loadQuestion(questionNo){ $.ajax({ type: "POST", url: 'projectName/showQuestion.action', data: "quesionNo="+questionNo success: function(data) { document.getElementById('questionId').innerHTML =data; } }); }
This is just a guide, and you change the thing according to your approach.
source share