11.12.2012 Views

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

It is interesting that context menus are often used to attempt to prevent images in the page from<br />

being saved to the user‘s local drive. <strong>The</strong> typical way a user saves an image or other page<br />

content is by right-clicking the content and using the context menu option to save it to disk.<br />

Trapping context menu events can prevent naïve users from doing so. For example, you could<br />

use a short script like this at the end of an HTML document:<br />

<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!