Ah! document.write() is only useful for inline script when the page is being initially displayed. It's not generally useful for events after the page load so it's not used very much.
If you want to display something as part of the HTML page, there are a number of ways to do it. The easier is a property on elements named innerHTML. Search around a bit for that term and you should be able to find some examples of its use.
Joined: Oct 16, 2008
My instructions are that I can only add code to the body of the function, and not add, remove or change anything after the brace