This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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