DOM

Methods

Coordination of Standards

We could insert our hidden element inside almost any other element as long as the nesting is proper.

Here is that portion of the source again.

Notice the nesting of the divs.
<div> <a href="javascript:void(0);" onclick="showOurExample(); return false"> The event handler will activate the script function. </a> <div id="ourExample"> This is the element, and hence its content, that are hidden from view by the CSS and are displayed through the DOM. </div> The styles in our DOM will replace those in our CSS. Because DOM and CSS have been developed to work together, their styles mesh. So, the replacement should be seamless. </div>

Next >


< Previous

[Page Top]

Introduction to DOM, by Dr Sam
copyright | contact
published by OxfordU.net

[An alternative, straight-text version is also available.]

Web-Design Tutorials by Dr Sam