disbable back option by java script
Answers were Sorted based on User's Feedback
Answer / makya
window.history.go(+1) use in java script;
or
onunload =window.history.go(-1) in body tag
Is This Answer Correct ? | 12 Yes | 6 No |
Answer / bharat
These codes are not suitable for disable Browsers back
button and Back Button on Mouse Right Click.
please write the code.
Is This Answer Correct ? | 3 Yes | 2 No |
Answer / gnana prakash
we can disable the right click using
<body oncontextmenu="return false">
</body>
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / 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 |
Is javascript enabled on chrome?
What is lazy loading in javascript?
How to make a function in javascript?
How do I open javascript console?
java is pure object oriented or not?
What is the difference between firstChild and firstElementChild?
How to create 3-dimensional Array in Javascript?
Which built-in method sorts the elements of an array?
What is null variable?
What is var and let in javascript?
why java is called platform independent?
Why typeof null is object?