Scripting Question:

How to disable back button in Mozilla?

Tweet Share WhatsApp

Answer:

<html><head>
<title>noBack</title>
<script type="text/javascript">
function noBack(){window.history.forward();}
</script>
</head>
<body onload="noBack();" onpageshow="if(event.persisted)noBack();" onunload="">
...blabla...
</body></html>

Download Scripting PDF Read All 9 Scripting Questions
Previous QuestionNext Question
Explain how to validate website address using JavaScript? User should not be allowed to enter special characters except hyphen(-)?How to connect to Oracle database, execute a script and assign its output to a shell variable?