JavaScript DHTML/Event onMethod/onContextMenu
"onContextMenu" Example
<source lang="html4strict">
<html> <head> <script language="JavaScript">
function function2() { alert("This image is copyrighted") }
</script> </head> <body oncontextmenu="function2()">
Right click in the image.
<img oncontextmenu="function2()" src="http://www.wbex.ru/style/logo.png" alt="www.wbex.ru" width="99" height="76">
</body> </html> If you want to disable the context menu, add the following code to the <body>: oncontextmenu="function2(); return false;"
</source>