Plug-in JavaScript Chapter 3, Example 08 (Click on the icon to view the source for copy and pasting)
» Run this code now (Right click and select Back to return from the example)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<html><head><title>Plug-in JavaScript: Example 8</title>

<script src="PJ.js"></script>


<img id='gif' src='i1.gif' />
The image cannot be dragged.
<span id='text'>And this text is unselectable.</span>


window.onload = function()
   PreventAction('gif',  'drag',   true)
   PreventAction('text', 'select', true)