I am trying to format this line of code in my popup window, but i am facing unterminated string literal error.
unterminated string literal
Can somebody please tell me how best I co
It's because you're using nested double quotes. Quotes delimit strings so when you get to the second one, it thinks the string has ended, as you can see from the colour highlighting in the code you posted. You need to escape them with \":
\"
window.setTimeout("winId.document.write('\n')", 10);