I am creating a online quiz where i am running clock, when user click refresh it reset the clock, so any suggestion will be welcome.
Any option to disable redirection or on redirection submit button should get clicked.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vincent Maverick DuranoPosted Jun 28, 2016, 12:55 PM
However, you could probably force the cache to expire to disable the browser back button or you could try using this JavaScript hack to prevent browsing back here:http://www.aspsnippets.com/Articles/Disable-Browser-Back-Button-Functionality-using-JavaScript.aspx
Vinay SinghPosted Jun 23, 2016, 4:08 AM
Click Here...
$(document).ready(function() {
function disableBack() { window.history.forward() }
window.onload = disableBack();
window.onpageshow = function(evt) { if (evt.persisted) disableBack() }
});