spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column44


The Document Object Model (DOM), Part 5: More Methods

Developer News
Google Going Native With Chrome
Mozilla Fixes Firefox Flaws as 3.5 Release Nears
Microsoft and Novell Still Bosom Buddies

In the last four columns we gradually built your expertise in analyzing and synthesizing the Document Object Models of simple as well as complex documents. We taught you how to use the DOM's properties and some of its methods to manipulate documents on-line. In the last column we taught you how to replace, remove, and swap existing DOM nodes. In this column we'll switch gears and show you how to create new DOM nodes and how to add existing objects to the DOM tree.

The Document Object Model supports a rich set of methods to create and manipulate DOM nodes. We summarized these methods last column. In this column we'll explain in detail the creation-related methods. You can use the DOM's methods to create new HTML tag nodes as well as text nodes. You can also clone existing nodes to create duplicates. Once you have two new nodes, you can assign one node to be the father of another one, and vice versa. You can also insert an object into an existing DOM tree.

In particular, you'll learn:

More Resources from Doc JavaScript
Columns Popular Columns Tips Tools
Latest Columns
41-50 | 31-40 | 21-30
11-20 | 1-10
Working with Windows
JavaScript and Frames
Bookmarklets
Random Tips
Personalized Tips
RSS Channels
Menu Builder
Rollover Builder
Rotation Builder
Reference Tip Categories (want one?)
Links
For Your Site
Did you learn something? Do you like this site? Please link to us!

http://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
XML and PHP Simplified · Creating a ASP.NET Contact Form · Data Filtering with PHP
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Intel to Host Live Nehalem Q&A · 12 Tips to Troubleshoot Network File-Sharing · 10 Tips for Selling on Kijiji


Created: July 19, 1999
Revised: July 19, 1999

URL: http://www.webreference.com/js/column44/