<!DOCTYPE html>
<html>
<body>
<b>test</b>
<div>one</div>
<div>two</div>
<script type='text/javascript'>
var all = document.getElementsByTagName("div");
for(i=0; i < all.length; i++) {
all[i].innerHTML = ""
}
</script>
</body>
</html>