disbable back option by java script

Answers were Sorted based on User's Feedback



disbable back option by java script..

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

disbable back option by java script..

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

disbable back option by java script..

Answer / sree ramanjaneya

Thanks to..Makya
and Gayathiri P

Is This Answer Correct ?    1 Yes 1 No

disbable back option by java script..

Answer / gnana prakash

we can disable the right click using

<body oncontextmenu="return false">
</body>

Is This Answer Correct ?    2 Yes 2 No

disbable back option by java script..

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

Post New Answer

More JavaScript Interview Questions

Can you call a Java Applet using a JavaScript function?

2 Answers   HCL, Satyam,


What is the potential disadvantage of using a sticky session?

0 Answers  


How to remove the event listener?

0 Answers  


How dhtml is used in javascript?

0 Answers  


Name the two functions that are used to create an HTML element dynamically?

0 Answers  


Why is java better than javascript?

0 Answers  


Write a program in Java to display the IP address of the local and remote machine.

0 Answers   Annamalai University,


What is the use of isNaN function?

0 Answers  


Can you explain the difference between call and apply?

0 Answers  


What are self invoking functions?

0 Answers  


Do hackers use javascript?

0 Answers  


How to call a function inside a function in javascript?

0 Answers  


Categories