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 ofObjects
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 code ...

Get Absolute Beginner's Guide to Programming, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.