HTML Elements as JavaScript Objects

This page contains a number of HTML elements, which are represented in JavaScript as JavaScript objects. The buttons on this page call user-defined functions that access and modify various attributes of these elements/objects. To see how this works, view the source code for this page1. Reloading the page will bring everything back to its initial value.

This page should have 7 buttons.


1Depending on your browser and operating system, you may be able to view the page source from a menu option or by right-clicking or control-clicking on the page.