September 07, 2003

Mini-tutorial on DOM
While experimenting with some JavaScript, I wanted to create a button that would change the background color of a web page. The result is a good example of the "Document Object Model" that most new designs are based on today. Using the "onClick" function of the button, the new hexidecimal color code is passed to the browser. Adding an inline style to the button code, the button's color matches the color the background would be changed to.

Here's the page: Changing Background Colors