on 02-16-2005 9:38 PM
How can I deactivate the effect of a click on the right mouse button on a page with flow logic?.
Thanks in advance,
Ruben.
Right mouse button probably means out there in your browser. This is HTML and Javascript. It plays no role whether the page was assembled with MVC or older pages.
As for you question, just ask your favourite search engine. Typical keywords could be "JavaScript right mouse button". One of the first links I saw, was:
http://www.rgagnon.com/jsdetails/js-0061.html
There are thousands more!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Antoher one for you that I have used inside my BSP's before:
Here you got an example:
<head>
...
<script>
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Sorry, you do not have permission to right click.");
return false;
}
return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
</script>
...
</head>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.