Can anyone discern why the following code writes the document.write() lines
literally? That is, a line like document.write('<CENTER>') should write
<CENTER> but instead writes the entire document.write('<CENTER>').
I must be really doing something stupid. Can anyone here illuminate me?
Thanks, Ike
<HTML><HEAD>
<TITLE>My Applet</TITLE>
</HEAD><BODY>
<script language="JavaScript">
var sQuery = location.search.substring(1);
sQuery.toLowerCase();
if(!(
sQuery=="ja**@earthlink.net" ||
sQuery=="ja**@selecct-right.com"
)){
sQuery="in**@selecct-right.com";
}
sQuery=sQuery+" cc:in**@select-right.com";
alert (sQuery);
document.write('<CENTER>')
document.write('<APPLET')
document.write('CODE = "hline/hline.class"')
document.write('<PARAM NAME="RFQTo" VALUE="')
document.write(sQuery);
document.write('"></APPLET>')
</script>
</CENTER>
</BODY>
</HTML>