Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

document.write

Status
Not open for further replies.
Joined
Aug 1, 2003
Messages
39
Location
US
I am coding in XHTML 1.0 strict format.

The code below->

Code:
<script type="text/javascript">
document.write("<h1>Brian's Supermarket Order Form</h1>")
</script>

While coding in Dreamweaver CS3 keeps giving me this validation response. The code is focusing on the < in the </h1> tag.

< found between tags. Consider using the equivalent entity (&amp = '&', &lt = '<', &gt = '>', &quot = quotation mark). [XHTML 1.0 strict][/color blue]

but the code looks to me the amateur like it is fine.
It is working fine in IE6.

[pipe]

Thanks
Brian
 
Do this (xhtml strict) instead.
[tt]
<script type="text/javascript">
[blue]<![CDATA[[/blue]
document.write("<h1>Brian's Supermarket Order Form</h1>")
[blue]]]>[/blue]
</script>[/tt]
 
Thanks for the information tsuji

--------------------------
Thanks
Brian

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top