Including 'script' Tags in String Literials
This section provides a tutorial example showing the issue of including 'script' tags in string literals in HTML document.
If you run this example script in a browser, you will get:
"); document.writeln("Rate this answer: 1 | 2 | 3 | 4 | 5");
Surprised? Not really. Here is what happened when the browser processes this HTML document:
See the next section on how to fix this problem.
Table of Contents