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 |
What is this keyword?
9 Answers Cognizant, Infosys, Satyam,
What is a string in javascript?
How to redirect a page to another page in javascript?
How do I open javascript in chrome?
What is break and continue statements?
What is an undefined value in JavaScript?
Explain export & import in javascript?
What is called variable?
What is the difference between scripting and programming?
What does the term sticky session mean in a web-farm scenario? Why would you use a sticky session? What is the potential disadvantage of using a sticky session?
How to convert numbers to strings using javascript?
What is this in JavaScript?