I have a JavaScript that will disable the Right Click on a web page:
============================================================
<title>Out Today</title>
</head>
<SCRIPT LANGUAGE="JavaScript">
<!-- start hide
document.onmousedown = click;
if (document.layers)
document.captureEvents(Event.MOUSEDOWN);
function click(e)
{
if (document.all)
if (event.button == 2)
{
document.write(""
; // need to do this to "fool" IE
return false;
}
if (document.layers)
if (e.which == 3)
{
return false;
}
}
// end hide -->
</SCRIPT>
<body bgcolor="#C0C0C0">
=======================================================
The problem I'm having is that when a user Right Clicks on the page the Title of the web page changes to the URL of the web page. How or what could be added to prevent this or make the Title reflect something like "XX" ?
Thanks
< I want to work in Theory - everything and everybody works in Theory !!>
============================================================
<title>Out Today</title>
</head>
<SCRIPT LANGUAGE="JavaScript">
<!-- start hide
document.onmousedown = click;
if (document.layers)
document.captureEvents(Event.MOUSEDOWN);
function click(e)
{
if (document.all)
if (event.button == 2)
{
document.write(""
return false;
}
if (document.layers)
if (e.which == 3)
{
return false;
}
}
// end hide -->
</SCRIPT>
<body bgcolor="#C0C0C0">
=======================================================
The problem I'm having is that when a user Right Clicks on the page the Title of the web page changes to the URL of the web page. How or what could be added to prevent this or make the Title reflect something like "XX" ?
Thanks
< I want to work in Theory - everything and everybody works in Theory !!>