DHTML DOM
The DOM allows authors direct and programmable access to individual components of web documents. This allows pages to interact with user input, execute scripts and display new content without downloading additional documents.
The DOM gives every HTML element the ability to be programmable and run a script and / or interact with the user.
1. Internet Explorer fails to make use of the WC3 standards of DOM in some cases, this means when an author codes a web-page, he must accomodate both the Wc3 standards and the special cases for Internet Explorer. To access a particular element in Firefox, getElementById() can be used to grab everything inside a specific element, in IE this is done by using an All collection, that also grabs everything inside an element, however uses different code. Both these methods need to be enacted in a HTML document so the author gains maximum usage.
2. Keypress events: A keypress event is triggered when a keyboard key is pressed down and release, whereas a keydown event is triggered as soon as a keyis pressed down, regardless of release.
3. Bubbling is a process that passes unhandled events up the element tree until they are handled by some parent element. This is useful as it allows a single handler to handle many child events of an element. Previously if each event wasn’t handled explicitly, it would be lost.
4. To cancel an event, you must set the window.event.cancelBubble property to “true” in the event handler.
Week 7.

Leave a Reply