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

Display title attribute information for each paragraph in this page.

What to Buy

Don't forget to buy this stuff.