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**********@y aho.com> wrote in message
news:u0******** ******@tk2msftn gp13.phx.gbl...
You can do it with JavaScript - here's a bit of JavaScript for how we did
it...
<script language="JavaS cript">
var ErrMsg = "Sorry! Right Click is disabled. Please use your browser
menu options.";
function disableRightCli ck(btnClick)
{
if (navigator.appN ame == "Netscape" && btnClick.which == 3) // check for
netscape and right click
{
alert(ErrMsg);
return false;
}
else if (navigator.appN ame =="Microsoft Internet Explorer" && event.button
== 2) // for IE and Right Click
{
alert(ErrMsg);
return false;
}
}
document.onmous edown = disableRightCli ck;
</script>
This code also takes NetScape browsers into account.
Coleen
"Robert" <bo**@donotsend .com> wrote in message
news:ex******** ******@TK2MSFTN GP09.phx.gbl...
Can I programmaticall y disable the right click context menu?