Simple html vs Javascript generated html?

Posted by Rizo on Stack Overflow See other posts from Stack Overflow or by Rizo
Published on 2010-06-03T19:03:33Z Indexed on 2010/06/03 19:04 UTC
Read the original article Hit count: 419

Filed under:
|
|
|

In my web application I would like to complately avoid html and use only javascript to create web-page's dom tree.

What is faster writing web content in the traditional way in html <div>Some text</div> or using javascript dom render, like this: div.appendChild(document.createTextNode("Some text"));?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html