[Solved] How to exam wise countdown timer start [closed]


Like I said in another thread, you need to remove the countdown from the LocalStorage. To achieve this you need to perform this action on an defined event, like a button click, or whatever.

function resetCountdownInLocalStorage(){
    localStorage.removeItem("seconds");
}

You can call this action, like I mentioned on for example the click event of your “Next” button, or on every Restart of the test.

For example if you want to call this action on your Next button and we assume that the button has the Id next you can achieve the requested action by using this javascript snippet:

document.getElementById("next").onclick = function() {       
     localStorage.removeItem("seconds");
}

Or using the function from above:

 document.getElementById("next").onclick = resetCountdownInLocalStorage;

1

solved How to exam wise countdown timer start [closed]