friends...
i am develope website application in asp.net...i need disable right click option in browser while running the program...and also disable refresh button in toolbar..
this code support all browser.pls help me friends.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Smart WavePosted Feb 29, 2012, 11:42 AM
You could find it here in more details:
http://www.techyv.com/questions/script-disables-right-click
Suthish NairPosted Feb 19, 2012, 1:42 PM
Have you ever wonder why there is no possible answers available for this issue over internet.
This an open issue for all developers across the world. Using Java Script is not the best solution.
Disabling Browser Caching is the best way we can overcome this problem..
sheik abuPosted Feb 17, 2012, 5:38 AM
This script only working in IE browser..not other browser like mozila and crome..pls sent other script which supports all browsers...
Jignesh TrivediPosted Feb 16, 2012, 10:47 PM
To disable right click
to disable refresh button is quite difficult but..
Try
document.attachEvent("onkeydown", DisableF5);
function DisableF5() {
switch (event.keyCode) {
case 116: // 'F5'
event.returnValue = false;
event.keyCode = 0;
window.status = "You can't refresh this page.............";
break;
}
}
hope this help.
Satyapriya NayakPosted Feb 16, 2012, 12:06 PM
For disable right click option in browser.Use the below code.
Thanks