Advantages of createElement over innerHTML?

Posted by oninea on Stack Overflow See other posts from Stack Overflow or by oninea
Published on 2010-06-01T00:30:13Z Indexed on 2010/06/01 0:33 UTC
Read the original article Hit count: 196

Filed under:
|

In practice, what are the advantages of using createElement over innerHTML? I am asking because I'm convinced that using innerHTML is more efficient in terms of performance and code readability/maintainability but my teammates have settled on using createElement as the coding approach. I just wanna understand how createElement can be more efficient.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about dom