Delete div Element from page - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Div


Delete div Element from page

Demo Code

ResultView the demo in separate window

      <meta name="viewport" content="width=device-width, initial-scale=1"> 
         <input id="myElement" value="Remove me clicking on the button below" size="100"> 
      <button onclick="myFunction()">Remove input</button> 
function myFunction() {/*from  ww w. jav  a 2s  . c om*/
    var x = document.getElementById("myElement");


Related Tutorials