'type' Example : type : Node Operation JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Node Operation » type »

 

'type' Example



    
<html>
<body>
<script language="JavaScript">
function function1(){
   var newN = document.createElement("input");
   newN.type = "text";
   myForm.appendChild(newN);
   newN.innerText="Testing";
}
</script>
<form id="myForm">
    <button onclick="function1();" type="button">Add Text Input</button>
</form>
</body>
</html>

    
      
      



-

Leave a Comment / Note


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

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Node Operation
» type