Click to See Complete Forum and Search --> : Need Help With Alert MSG Plz


Lost_comp
08-28-2003, 08:00 PM
How do U create a alert message where, if some was 2 right click on the page they can't view the source or copy the text?:confused:

soccer362001
08-28-2003, 09:26 PM
<script language="JavaScript">
<!--
var mymessage = "message";
function rtclickcheck(keyp){
if (navigator.appName == "Netscape" && keyp.which == 3) {
alert(mymessage);
return false;
}

if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) {
alert(mymessage);
return false;
}
}

document.onmousedown = rtclickcheck
//-->
</script>

Lost_comp
08-28-2003, 09:54 PM
Thanks Man.:)

pyro
08-28-2003, 10:05 PM
They can still view the source and copy the text, however. They can do it all from their file menu, or through the keyboard shortcuts...