Ooops, my apologies, I've been coding with Mootools for too long, keep forgetting vB doesn't use it! So window.addEvent() doesn't exist.
Don't really need it tho. Just do this somewhere in headinclude:
HTML Code:
<script type="text/javascript">
<!--
document.getElementsByTagName('html')[0].setAttribute('id','blah');
-->
</script>
I just tested it, and it works fine:
HTML Code:
<html id="blah" lang="en" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
NOTE - if you just 'View Source", you won't see the change to the html tag. Show source only shows you the page as it was loaded from the server, it doesn't show you any modifications made to the DOM by any JavaScript. You need to run something like FireBug in FireFox to see the modified DOM structure, and use FireBug to "Inspect" the HTML. Then you'll see the modified DOM.
(DOM is the Document Object Model, the actual structure of your page within the browser)
-- hugh