disbable back option by java script

Answer Posted / gayathiri p

This code is correct for disable Back Button
<html>
<body onkeydown="if (event.keyCode==8) {event.keyCode=0;
return event.keyCode }">
</body>
</html>

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the difference methods get and post in html forms?

479


How to get height and width of different browser in Javascript?

521


How to find radio button selection when a form is submitted?

453


Does javascript have the concept level scope?

582


Are Typescript and Javascript the same?

523






What is the difference between undeclared & undefined?

514


What is Number object in JavaScript?

565


What is difference between callback and promise?

456


What is closure?

537


How would you organize your javascript code?

479


How to use strings as array indexes using javascript?

521


What are nodes in javascript?

444


What is output of “20” + 20 + 20 and “20” + ( 20 + 20)? In javascript?

586


What is the difference between the substr() and substring() functions in javascript?

504


What is the data type of variables in javascript?

473