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="JavaS cript">
var sQuery = location.search .substring(1);
sQuery.toLowerC ase();
if(!(
sQuery=="jake@e arthlink.net" ||
sQuery=="jake@s elecct-right.com"
)){
sQuery="info@se lecct-right.com";
}
sQuery=sQuery+" cc:info@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>
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="JavaS cript">
var sQuery = location.search .substring(1);
sQuery.toLowerC ase();
if(!(
sQuery=="jake@e arthlink.net" ||
sQuery=="jake@s elecct-right.com"
)){
sQuery="info@se lecct-right.com";
}
sQuery=sQuery+" cc:info@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>
Comment