hi.

is there a way to get the HTML representation of a newly created object?

like, if I do

HTML Code:
var h1 = document.createElement('h1');
var txt = document.createTextNode('hello!');
h1.appendChild(txt);
how do I get
Code:
<h1>hello!</h1>
thanks, any help appreciated!