OSCON/test.html
author ivanl
Tue, 21 Jul 2009 14:30:35 +0100
changeset 13 3a1db8573f1e
parent 7 97dcd250e5be
permissions -rw-r--r--
cleanup

<html>
<body>
<script language="JavaScript">
function function1() {
   var myElement = document.createElement('<div style="width:300; height:200;background-color:blue;"></div>');
   document.all.myDiv.insertBefore(myElement); 
} 
</script>
<button id="myButton" onclick="function1();">Insert element</button>
<div id="myDiv" style="width:300; height:200;"></div>
</body>
</html>