Below is a script for disabling right-click. (To get round it, just hold down RMB, then click 'OK' on the alert, then release the RMB, and there is the menu.)
script language="JavaScript">
var msg="mouse right click disabled.\n\n(or any message you want)";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(msg);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(msg);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
</script>
If you combine this with a pop-up window, then you have a little protection against a beginner. If you need the code for a simple pop-up window with no chrome, try:
<a href="javascript:void(null)" onclick=window.open("Test.htm",null,"width=500,height=300,scrollbars=no,resizable=no,left=200,top=200");>Click Here</a>
Again, it is *very* easy to get round, though.