heres some code , it errors cos i knocked the d of document 6 lines from the bottom
Code:
<html>
<body>
<script language="JavaScript">
<!--
var message="You are not aloud to access the code, sorry";
var messagerule="I am sending you to my copyright page which will give you the summary of the codes";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message)
alert(messagerule)
window.open("law.htm")
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
ocument.onmousedown=click;
// -->
</script>
</body>
</html>
this brings the warning box up, but this all depends on the settings for ie (im presumming ure using the webbrbowser control) message "ocument is not defined"
Enter your message below
Sign in or Join us (it's free).