Plug-in JavaScript Chapter 3, Example 17 (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"
   "http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>Plug-in JavaScript: Example 17</title>

<script src="PJ.js"></script>
<script>Initialize()</script>

</head><body>

This example JavaScript looks like this:
<pre>
&lt;script&gt;
alert("The hexadecimal number FFFF in decimal is " +
   HexDec('FFFF'))
&lt;/script&gt;
</pre>

<script>

window.onload = function()
{
   alert("The hexadecimal number FFFF in decimal is " +
      HexDec('FFFF'))
}

</script>