Starting to implement Javascript, I need to do troubleshooting and would like to output HTML to the screen without it being rendered. I can access the element (in IE) by
document.getElementById("test").outerHTML
I think, but I can't prove what I'm getting to be sure.
So what do I do to have document.write show the entire element including tags?
See Question&Answers more detail:os