#9: No Right Click script Dynamic Drive

This is a DHTML script that will prevent the default right menu from popping up when the right mouse is clicked on the web page. Use it to stop surfers from easily saving your web page, viewing its source, or lifting images off your site when using either IE 4+ or NS 4+. Definitely useful for many site owners...

Demonstration

Try right clicking anywhere within this page.

Compatibility

IE4+ NS4 NS6+

To download...

Copy the below code (highlight it, and press Ctrl+C), and follow the inline comments to paste the appropriate snippets into your webpage:

Additional comments

This script is not 100% fool proof; by very quickly depressing both the right and left mouse buttons, it can be circumvented. There is no way to invariably prevent the right click menu from popping up.

Product of Dynamic Drive Copyright © 2002. Please see usage terms for acceptable use