OSCON/test.html
author ivanl
Wed, 29 Jul 2009 10:14:37 +0100
changeset 15 5e64ec5b1dfe
parent 7 97dcd250e5be
permissions -rw-r--r--
1.0rc11 Fixes feed parsing problems Cleanup of dead code

<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>