Helix
09-27-2003, 07:35 AM
Can somebody tell me what is wrong with the following string assignment?
s="<script></script>"
"Nothing", you'll say. Indeed, if you take the time to put the statement in a file and save it with a .js extension, the script successfully executes.
Then, why is it that my page is not working any more when I paste in this line??
<html>
<head>
<meta http-equiv="content-script-type" content="text/javascript">
<script type="text/javascript">
function blah()
{s="<script></script>"}
</script>
</head>
</html>
s="<script></script>"
"Nothing", you'll say. Indeed, if you take the time to put the statement in a file and save it with a .js extension, the script successfully executes.
Then, why is it that my page is not working any more when I paste in this line??
<html>
<head>
<meta http-equiv="content-script-type" content="text/javascript">
<script type="text/javascript">
function blah()
{s="<script></script>"}
</script>
</head>
</html>