mozilla

Compare Revisions

Traversing an HTML table with JavaScript and DOM Interfaces

Change Revisions

Revision 352457:

Revision 352457 by jvns on

Revision 479743:

Revision 479743 by Ichimonji10 on

Title:
Traversing an HTML table with JavaScript and DOM Interfaces
Traversing an HTML table with JavaScript and DOM Interfaces
Slug:
Traversing_an_HTML_table_with_JavaScript_and_DOM_Interfaces
Traversing_an_HTML_table_with_JavaScript_and_DOM_Interfaces
Tags:
"DOM", "NeedsMarkupWork", "HTML", "JavaScript"
"DOM", "NeedsMarkupWork", "HTML", "JavaScript"
Content:

Revision 352457
Revision 479743
n135    <h2 name="Setting_background_of_a_paragraph">n135    <h2 id="Setting_background_of_a_paragraph" name="Setting_back
 >ground_of_a_paragraph">
n141    <h3>n141    <h3 id="HTML_Content">
n151    <h3>n151    <h3 id="JavaScript_Content">
n248      Each node can be removed. The following line removes the ten248      Nodes can be removed. The following code removes text node 
>xt node which contains the word world of the myP (second &lt;p&gt><code>myTextNode</code> (containing the word "world") from the se
>; element).>cond <code>&lt;p&gt;</code> element, <code>myP</code>.
t254      Finally you can add myTextNode (which contains the word wort254      Text node <code>myTextNode</code> (containing the word "wor
>ld) into the recently created &lt;p&gt; element:>ld") still exists. The following code attaches <code>myTextNode</
 >code> to the recently created <code>&lt;p&gt;</code> element, <co
 >de>myNewPTAGnode</code>.

Back to History