We would like to know how to remove div inner Html.
<!DOCTYPE html>
<html>
<body>
<b>test</b>
<div>one</div>
<div>two</div>
<script type='text/javascript'>
<!-- w w w. j ava 2s. c o m-->
var all = document.getElementsByTagName("div");
for(i=0; i < all.length; i++) {
all[i].innerHTML = ""
}
</script>
</body>
</html>
The code above is rendered as follows: