11.12.2012 Views

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure B-4: <strong>The</strong> Internet Explorer 3 object model<br />

Netscape 4<br />

Netscape 4 adds the first primitive DHTML capabilities by exposing the proprietary <br />

element to scripts. This browser also has a more robust event model where events begin at the<br />

top of the hierarchy and trickle down to the target element, affording intervening objects the<br />

opportunity to handle or redirect the event. While it might appear that dynamic manipulation of<br />

style is possible, most parts of the page will not reflect changes to their style once the page has<br />

been loaded.<br />

This model is shown in Figure B-5.<br />

Figure B-5: <strong>The</strong> Netscape 4 object model<br />

Internet Explorer 4+<br />

Internet Explorer 4 marks the point at which DHTML capabilities begin to come of age. This<br />

browser exposes all parts of the page to scripts through the all[] collection. <strong>The</strong> event model<br />

features event bubbling, where events begin their life cycle at the element at which they occur<br />

and bubble up the hierarchy, affording intervening elements the opportunity to handle or<br />

redirect the event. This model is shown in Figure B-6.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!