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 |
Hello , I am using following java script to open new window in I.E,but i am facing an issue the new window hangs often while opening,when you move mouse it opens normally.Can any body help me why this is happening as i am unable to understand this issue?please please if any one know so kindly help me I am in real difficulty through this issue.Thanks 'if(window.clipboardData){clipboardData.setData("Text","' + a.PatID + '");}' + 'ordwindow= window.open ("' + @OrderDetailURL + '", "RXOrderDetail", "location=0,status=0,menubar=0,toolba r=0,scrollbars=1,resizable=1"); ordwindow.moveTo(parent.screenLeft,0);var x; x=new ActiveXObject("WScript.Shell");x.SendKeys("% "); x.SendKeys ("x"); //fcttest((sp_RX_ChangeOrderStatus ' + '''' + a.DocID + '''' + ', 1, ' + convert(varchar,@SessionID) + '));' As [W],
What is the purpose of using javascript?
What does the isNaN() function?
since are functions need to create a webpage is available in dhtml& html. then why we are going for javascript
How we can add title of the page by javascript?
What javascript method would convert the string “20” to an integer (on the fly) so “20” + 20 = 40?
What is decodeuri() in javascript?
How do I use javascript to password-protect my web site?
Can you explain how inheritance works in javascript?
Are there any predefined constant provided by the browser with the key code values that can be reused?
Where do you put javascript in html?
What are the different types of errors supported by javascript?