0

I have the following code:

<script>
document.writeln('<SCRIPT>window.JXG || document.write(\'\x3Cscript type="text/javascript" src="foo.js">\x3C/script>\')<\/SCRIPT>');
</script>

Which trows me a "unterminated string literal" SyntaxError, i can not imagine what i could possibly change that it will work. Someone has any clue how to solve this?

3
  • What's the point of that nested document.write/writeln? Commented Nov 5, 2015 at 19:44
  • It is part of a adserver, the outer document.writeln i can not controll and is added while the ad is uploaded. Commented Nov 6, 2015 at 1:19
  • Possible duplicate of SyntaxError: unterminated string literal javascript Commented Sep 26, 2016 at 17:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.