Chapter 6. Programming the Browser
The browser makes available a remarkable number of objects. For example, there is a
window object corresponding to the window of the browser. You have already been using two methods of this object, namely the
prompt() methods. For simplicity, we previously referred to these as functions, but they are in fact methods of the browser's
Another object made available by the browser is the page itself, represented by the
document object. Again, you have already used methods and properties of this object. Recall from Chapter ...