Chapter 9: Handling Events

Return to Chapter 9

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Mouse Event Handling: onmousedown

See it run: Mouse Event Handling: onmousedown

Script 9.9

This JavaScript will deter some inexperienced users from bringing up the shortcut menu on your pages.