In online examination once candidate has clicks on start button i dont want to allow him to go back (to previous pages) and he should be in same page if he do any activities
You can use replace()
replace()
window.location.replace('your url here');