Uncle Jim's JavaScript Examples

Right-Click Menu

Author: Dynamic Drive

For those of you who wish to stop theives by disabling the right click, here's something to give them instead. When visitors right click, they get a menu instead of a nasty alert message. This is less obtrusive and also gives you a neat place to put your menu. In MSIE, right clicks produce a static menu that stays on the screen until the user left clicks. Other browsers simply ignore it.

COPY - Insert Between Head Tags: <HEAD></HEAD>

COPY - Insert Inside Body: <BODY></BODY>

Close This Window