The "document.write" statement is deprecated in most new doctypes.
However, with a loose (or no) doctype, this should work. Where is the script running? It needs to run in the section of your page.
Give us a link?
tgreer
Made Her Cry
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
When I go to "view source", I don't see the line that suppously was written by the JS function.
You don't usually get to see the line that was written, since it happens on the client. The "view source" option gives you the original source, not the client-execution result.
Esopo
Junior Poster in Training
50 posts since Feb 2006
Reputation Points: 14
Solved Threads: 1