Forum Moderators: open
You don't need to escape the quotes with backslashes unless they are part of a string that you are writing to the document (or innerHTML) - even then, you don't need them if you start with single quotes
document.write("<img src=\"thing.gif\">")
or
document.write('<img src="thing.gif">')