<html> <head> </head> <body> <script type="text/javascript"> var div1 = document.createElement('div'); div1.innerHTML = "1"; document.body.appendChild( div1 ); </script> </body> </html>