SyntaxFix
Write A Post
Hire A Developer
Questions
I think you should use, instead of document.write, DOM JavaScript API like document.createElement, .createTextNode, .appendChild and similar. Safe and almost cross browser.
document.write
document.createElement
.createTextNode
.appendChild
ihunger's outerHTML is not cross browser, it's IE only.
outerHTML