'applyElement()' Example : applyElement : Node Operation JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Node Operation » applyElement »

 

'applyElement()' Example



    
<script language="javascript">
function function1(){
   var myElement = document.createElement('<div style="width:600; height:200;background-color:blue;"></div>');
   document.all.myBody.applyElement(myElement, 'inside'); 

</script>
<body id="myBody">
<button onclick="function1();">Apply element</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Node Operation
» applyElement