Response.Write won't work?
This javascript code in the html below does nothing and provides no error message for why it isn't working:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<head>
<meta content="JavaScript" name="vs_defaultClientScript">
</head>
<body id="bdySurvey" MS_POSITIONING="FlowLayout" style="color:;font-family:Arial;font-size:10pt;">
<form name="frmSurvey" id="frmSurvey">
My text before the script<br/>
<script language="javascript">Response.Write("TEST TEXT");</script><br/>
my text after the script
</form>
</body>
</HTML>
If I replace the Response.Write with alert, I get a message box, so I know it's running the script. But I cannot seem to get any text to appear on my form. What am I doing wrong?
|