|
-
Jan 31st, 2003, 02:39 AM
#1
Disable right click popup //resolved//
To understand my question, head over to http://mendhak.worldjunkie.com/
It works if you're using IE.
Now, if you left click anywhere on the page, it goes over to phpinfo.html
If you right click anywhere on the page, however, the right click menu pops up, and then heads over to phpinfo.html
How can I get rid of this right click's menu?
Also, the javascript I'm using is this:
Code:
<script language="JavaScript">
function click(e) {
if(event.button==2){
document.location.href='phpinfo.html';
return true;
}
else
{
document.location.href='phpinfo.html';
}
}
document.onmousedown=click;
</script>
Anyone good with stuff for Netscape and the other non-IE browsers? How would I write the same script for those browsers?
Thanks.
Last edited by mendhak; Jan 31st, 2003 at 12:14 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|