How can I prevent the user from bringing up the browser's popup menu?

John Zukowski

For Internet Explorer, the following code will prevent the popup, displaying an alert popup instead.

<script language="JavaScript"><!--

function click() {if (event.button==2) {alert('Disabled')}}
Also IE-specific, you can also do the following in the BODY tag:
<body oncontextmenu="return false;">
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact