Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another Web Browser Control Question
Message
General information
Forum:
Visual FoxPro
Category:
ActiveVFP
Miscellaneous
Thread ID:
01065857
Message ID:
01065866
Views:
15
>How do I prevent the right-click menu from coming up?

Most say you shouldn't do it:
http://www.sitepoint.com/article/dont-disable-right-click

... I agree. However...

The following code will disable the right mouse button in Internet Explorer, although even IE blocks the effect depending on your settings. It does not work in Firefox and I would assume any other Mozilla based browser (i.e. Netscape). This will of course have no effect on the user clicking View --> Source from the Menu of Internet Explorer.
<script language=javascript>
function mousedown() {
if (window.event.button == 2)
{ document.write("") }
}
</script>
</head>
<body onmousedown=mousedown();>
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Previous
Reply
Map
View

Click here to load this message in the networking platform