By bloid
via julienlecomte.net
Published: Dec 16 2007 / 00:22
The innerHTML property is extremely popular because it provides a simple way to completely replace the contents of an HTML element. Another way to do that is to use the DOM Level 2 API (removeChild, createElement, appendChild) but using innerHTML is by far the easiest and most efficient way to modify the DOM tree. However, innerHTML has few problems of its own that you need to be aware of
Tweet
SaveShareSend
Tags: javascript
Add your comment
Voters For This Link (16)
-
bloid -
harlan -
wkjeremy -
ginstrom -
FlySwat -
heardy -
joeabiraad -
eric_suen -
p4trykx -
fabiocaseri -
messias -
unchqua -
mhavila -
rguy -
subru77 -
kadlet51


