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
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

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, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business


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

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