Plug-in JavaScript Chapter 3, Example 09 (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 9</title>

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


<div id='square'>I'm a square</div>


window.onload = function()
   S('square').width           = Px(100)
   S('square').height          = Px(100)
   S('square').backgroundColor = 'yellow'

   alert("The value returned for the width of 'square' is: "   +
      S('square').width + "\nAfter using NoPX() this becomes " +