HTML DOM Question:
Download Questions PDF

Explain How to change HTML Attribute using HTML DOM?


example to change HTML Attribute by using HTML DOM.
<img id="image" src="oldimage.gif">
<script type="text/javascript">
In the above example we load an image on HTML document by using id="image".Using DOM we get the element with id="image".JavaScript that we used in example to changes the src attribute from oldimage.gif to newimage.jpg

Download HTML DOM Interview Questions And Answers PDF

Previous QuestionNext Question
Explain the syntax of UI object identifier used by DOM extension?What is XML family?