JavaScript in the Browser

Level 0 DOM

window; //The global object

//various other windows
window.self; 
window.window;
window.parent;
window.top;

//navigator object
window.navigator; 

//array of window objects
window.frames[];

//location object
window.location;

window.history;

window.screen;

//The document object (DOM)
window.document;

//Ways to access the various elements in a document
window.document.applets[];
window.document.images[];
window.document.links[];
window.document.anchors[];
window.document.forms[];
window.document.forms[].elements[];
window.document.forms[].elements[].options[];

José M. Vidal .

2 of 66