Number Of Page View:100,000+/Months
LOGIN |New User


How to change an HTML element using HTML DOM?
 Here,I have given you example to change an HTML element using HTML DOM.<html><body><h1 id="header">This is your Old Header</h1><script type="text/javascript">document.getElementById("header").innerHTML="This is your New Header";</script></body></html>Output:This is your New Header
 In the above example it will store header with an id="header". And get the element with id="header" by using DOM.We used JavaScript to change the content of HTML.