Reviewing JavaScript's Objects

Every element on your Web page is an object to JavaScript. By naming each element, you can manipulate those elements through JavaScript code. You might be surprised at the plethora of objects JavaScript recognizes. JavaScript even recognizes your browser's history list as an object. Table 21.1 lists a few of the Web page–based objects that JavaScript can view.

Table 21.1. JavaScript recognizes many kinds of objects.
window document form
applet anchor area
button checkbox fileUpload
image password radio
reset select submit
text textarea ids
link plugin tags
frame history location
menubar scrollbar statusbar

As with the Visual Basic controls, the JavaScript objects all support characteristics that your JavaScript ...

Get Absolute Beginner's Guide to Programming, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.