I cannot modify the HTML itself. I have created a small browser application
but I cannot have the right-click menu show up. Can I define my own and then
disable it? Will that override the default one the control has?
"Coleen" <co**********@yaho.com> wrote in message
news:u0**************@tk2msftngp13.phx.gbl...
You can do it with JavaScript - here's a bit of JavaScript for how we did
it...
<script language="JavaScript">
var ErrMsg = "Sorry! Right Click is disabled. Please use your browser
menu options.";
function disableRightClick(btnClick)
{
if (navigator.appName == "Netscape" && btnClick.which == 3) // check for
netscape and right click
{
alert(ErrMsg);
return false;
}
else if (navigator.appName =="Microsoft Internet Explorer" && event.button
== 2) // for IE and Right Click
{
alert(ErrMsg);
return false;
}
}
document.onmousedown = disableRightClick;
</script>
This code also takes NetScape browsers into account.
Coleen
"Robert" <bo**@donotsend.com> wrote in message
news:ex**************@TK2MSFTNGP09.phx.gbl...
Can I programmatically disable the right click context menu?