Chapter 2 Exercise from Murach's JavaScript and DOM Scripting Book