3 ms·
Node refers to an HTML element. HTML element: <p id="fun">test</p> JS to get a pointer to that element: var node = document.getElementById("fun"); node.id =
by coderdude 16y ago
Node refers to an HTML element.
HTML element: <p id="fun">test</p>
JS to get a pointer to that element: var node = document.getElementById("fun");
node.id = "really_fun";
How that affects the HTML element: <p id="really_fun">test</p>
- zeynel1 16y agoThanks. I am also reading this http://www.quirksmode.org/dom/intro.html http://www.quirksmode.org/dom/intro.html