|
Answer» Properties and methods are help us to define HTML DOM programming interface. some properties of HTML DOM. Let, 'e' is an HTML ELEMENT or node object.
- e.innerHTML : It shows the inner text value of e.
- e.nodeName : It shows the name of e.
- e.nodeValue : It shows the value of e.
- e.parentNode: It shows the parent node of e.
- e.childNodes: It shows the child node of e.
- e.attributes: It shows the ATTRIBUTE nodes of e.
some methods that we USED in HTML DOM.
- e.getElementById(id) : Using them we can get the element with a specified id in an HTML document.
- e.getElementsByTagName(name) : Using them we can get all elements with a specified TAG name in an HTML document.
- e.appendChild(node) : Using them we can insert a child node to e or increase the no of child nodes of e.
- e.removeChild(node) : Using them we can remove a child node from e in an HTML DOM.
Properties and methods are help us to define HTML DOM programming interface. some properties of HTML DOM. Let, 'e' is an HTML element or node object. some methods that we used in HTML DOM.
|