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

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

</head><body>

<br /><center>
<input id='a' type='submit' value=' Button A ' />
<input id='b' type='submit' value=' Button B ' />
<input id='c' type='submit' value=' Button C ' />

<script>

window.onload = function()
{
   O('a').onclick = function() { Hide('a') }
   O('b').onclick = function() { Hide('b') }
   O('c').onclick = function() { Hide('c') }
}

</script>