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

How to remove the event listener?

702


Difference between window, document, and screen in Javascript?

783


What does polyfill mean?

662


Is javascript default scripting language?

646


Which built-in method returns the character at the specified index?

925


What is a callback url?

705


Which operator is used to assign a value to a variable?

649


How do I link an external javascript file to html?

646


What is the difference between innerhtml & innertext?

665


What is the best site to learn javascript?

642


What is the use of math object in javascript?

669


Why typeof null is object?

736


How to redirect a page to another page in javascript?

704


How do we add javascript onto a web page?

714


How to write a script for "select" lists using javascript

723