InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is not DOM property?(a) element.appendChild(node)(b) document.createElement()(c) element.innerHTML(d) document.getElementById()I had been asked this question in a job interview.This interesting question is from Using Image Sprites & Standardizing Client-Side Templating in division HTML Images & Web Page Files of HTML |
|
Answer» CORRECT option is (d) document.getElementById() The BEST EXPLANATION: For generating DOM we use CERTAIN DOM properties or methods. Some of the DOM methods are element.appendChild(NODE), document.createElement(), element.innerHTML, document.removeElement(). |
|