I'm trying to change the value of the id attribute of the page's
<body> tag AFTER the tag is outputted.
i've two ways and both don't work
1)
document.getElementById("body").setAttribute("id", "hello");
2)
document.getElementsByTagName("body")[0].setAttribute("id","hello");
My page is as follows:
<html>
....
....
<body id="body">
....
</body>
</html>