Here are four examples of ways you can investigate the value of various DOM objects and properties. The "onload" event is triggered as soon as the body of the document is done loading (at which time the objects associated with the HTML elements should be ready to be tested).