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>
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>