



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to the browser object model (bom) and document object model (dom) in web development. The bom allows web browsers to be controlled, while the dom enables manipulation of web pages. The hierarchy of the bom, cross-browser issues, opening new windows, setting timeouts, browser dialogs, and manipulating the location and screen. Recommended resources are also included.
Typology: Slides
1 / 7
This page cannot be seen from the preview
Don't miss anything!




1
Web through browser BOM. controlled
Web through page DOM. controlled
2
window
Root Object of the ModelDocument
Window Object Reference: http://www.javascriptkit.com/jsref/window.shtml
4
window.open (p1, [p2, p3, p4]) p1: p2: 2 ttarget. t BlBl ankk ( ( or new name)) opens new window.i d Existinghttp://einstein.etsu.edu/~pittares/CSCI3110/examples/7 window or frame, opened there. ‐5.htm p3: controls window attributes using attribute/value pairshttp://einstein etsu edu/~pittares/CSCI3110/examples/7 6 htmhttp://einstein.etsu.edu/ pittares/CSCI3110/examples/7 in a single string. ‐ 6 .htm p4:
setTimeout(p1, p2) p1: string specifying function or a function definition p2: (^2) http://einstein.etsu.edu/~pittares/CSCI3110/examples/7‐7.htm Returnshttp://einstein.etsu.edu/~pittares/CSCI3110/examples/7 timeoutID ‐8.htm clearTimeout(timeoutID)http://einstein etsu edu/~pittares/CSCI3110/examples/7 9 htmhttp://einstein.etsu.edu/ pittares/CSCI3110/examples/7‐ 9 .htm
5
Modal:
Non‐modal:
http://einstein.etsu.edu/~pittares/CSCI3110/examples/7‐10.htm
Browser detection and information http://www.javascriptkit.com/jsref/navigator.shtml
7
Allows detection of information related to the user's screen. htthttp://www.javascriptkit.com/jsref/screen.shtml // j i tkit /j f/ ht l
http://javascript.about.com/od/browserobjectmodel/Browser_Object_Model.htm