1. Home
  2. Computing & Technology
  3. JavaScript
Stephen Chapman
Stephen's JavaScript Blog

By Stephen Chapman, About.com Guide to JavaScript

createDocumentFragment

Sunday August 30, 2009
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>

Explore JavaScript
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

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

All rights reserved.