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

List some data types supported by javascript?

0 Answers  


How can javascript codes be hidden from old browsers that don't support javascript?

0 Answers  


How do I turn off javascript in chrome?

0 Answers  


Define a named function in javascript.

0 Answers  


What is namespacing in javascript and how is it used?

0 Answers  






How to get checkbox status whether it is checked or not?

0 Answers  


What is the result of below given line of code in java script? 5+4+'7'?

0 Answers  


Explain how to read and write a file using javascript?

0 Answers  


Should I disable javascript?

0 Answers  


Difference json arrary vs json object ?

0 Answers  


What is the difference between programing language and scripting language.?

3 Answers   Reliance, TCS,


What percentage of websites use javascript?

0 Answers  


Categories