<html> <head> <script> function boom() { var k = document.getElementById("k"); k.appendChild(document.createTextNode(" ")); } </script> </head> <body onload="boom();"> <span><span id="k"><div></div></span><span style="float: right;"></span></span> </body> </html>