Plug-in JavaScript Chapter 5, Example 32 (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 32</title>

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


<span id='ghost'>Now you see me...</span> and soon you won't


window.onload = function()
   S('ghost').backgroundColor = 'lightblue'
   Resize('ghost', 128, 32)
   alert('Click OK to see the object disappear')
   alert('Click OK to see the object reappear')