Compare Revisions

Introduction

Revision 60826:

Revision 60826 by irtefa on

Revision 60827:

Revision 60827 by irtefa on

Title:
Introduction
Introduction
Slug:
Gecko_DOM_Reference/Introduction
Gecko_DOM_Reference/Introduction
Tags:
DOM, Gecko, NeedsMarkupWork, "Gecko DOM Reference"
DOM, Gecko, NeedsMarkupWork, "Gecko DOM Reference"
Content:

Revision 60826
Revision 60827
n13    <h3>n13    <h3 id="What_is_the_DOM?">
n37    <h3>n37    <h3 id="DOM_and_JavaScript">
n59    <h3 name="How_Do_I_Access_the_DOM.3F">n59    <h3 id="How_Do_I_Access_the_DOM.3F" name="How_Do_I_Access_the
 >_DOM.3F">
n76&lt;head&gt;n76  &lt;head&gt;
77&lt;script&gt;77    &lt;script&gt;
78// run this function when the document is loaded78    // run this function when the document is loaded
79window.onload = function() {79       window.onload = function() {
80   // create a couple of elements 80    // create a couple of elements 
81   // in an otherwise empty HTML page81    // in an otherwise empty HTML page
82   heading = document.createElement("h1");82       heading = document.createElement("h1");
83   heading_text = document.createTextNode("Big Head!");83       heading_text = document.createTextNode("Big Head!");
84   heading.appendChild(heading_text);84       heading.appendChild(heading_text);
85   document.body.appendChild(heading);85       document.body.appendChild(heading);
86}86      }
87&lt;/script&gt;87    &lt;/script&gt;
88&lt;/head&gt;88  &lt;/head&gt;
89&lt;body&gt;89  &lt;body&gt;
90&lt;/body&gt;90  &lt;/body&gt;
n93    <h3>n93    <h3 id="Important_Data_Types">
n152    <h3>n152    <h3 id="DOM_Interfaces">
n161    <h4>n161    <h4 id="Interfaces_and_Objects">
n181    <h4>n181    <h4 id="Core_Interfaces_in_the_DOM">
t234    <h3>t234    <h3 id="Testing_the_DOM_API">

Back to History