JavaScript

  1. Home
  2. Computing & Technology
  3. JavaScript
photo of Stephen Chapman

Stephen's JavaScript Blog

By Stephen Chapman, About.com Guide to JavaScript since 2004

createDocumentFragment

Wednesday September 3, 2008
JavaScript can use the DOM to build whole sections of HTML to be added in one go

So far in the tutorial series on the JavaScript DOM we have looked at ways to add, change, and delete single elements within our web page. In this fourteenth tutorial we look at how you can build up a collection of HTML elements and then use one single JavaScript command to add them all to your web page in one go. This way you wont have the pieces appearing one at a time as the code runs.

createDocumentFragment

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss

Community Forum

Explore JavaScript

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

JavaScript

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.