Page 1 of 1
Confusing Script
Posted: September 23rd, 2004, 5:21 pm
by AmaD
Code: Select all
<html>
<head>
<title></title>
<script>
document.write("<table border='2' cellpadding='1' cellspacing='1' style='border-collapse: collapse' bordercolor='666666' width='100%'
id='Fros'><tr><td width='30%'><font size='2'><font color='FFFFFF'><center><u> Item</u></center></td><td width='30%'><font
size='2'><font color='FFFFFF'><center><u> Cost</u></center></td></tr><tr><td width='30%'><font size='2'><font color='FFFFFF'></td><td
width='30%'><font size='2'><font color='FFFFFF'></td></tr></table><p>");
</script>
</head>
<body>
</body>
</html>
Can anyone tell me why this doesn't write the table please? Thanks

Posted: November 27th, 2004, 5:46 am
by Snowblind
Code: Select all
document.write("<table border='2' cellpadding='1' cellspacing='1' style='border-collapse: collapse' bordercolor='666666' width='100%' id='Fros'><tr><td width='30%'><font size='2'><font color='FFFFFF'><center><u> Item</u></center></td><td width='30%'><font size='2'><font color='FFFFFF'><center><u> Cost</u></center></td></tr><tr><td width='30%'><font size='2'><font color='FFFFFF'></td><td width='30%'><font size='2'><font color='FFFFFF'></td></tr></table><p>");
That has to be all on one line. Doing this works for me.