Description

getElementById example from "DOM Scripting: Web Design with JavaScript and the Document Object Model" by Jeremy Keith. This particular exercise is from Chapter 3, page 49. View Source to see the actual JavaScript being run.

Display pop-up: alert(typeof document.getElementById("purchases"));

What to Buy

Don't forget to buy this stuff.