[thelist] JavaScript: document.write() in head section

elin tjerngren. artopod elin at artopod.se
Wed Feb 20 10:05:01 CST 2002


Hi,

> Is there something wrong about writing document.werite() in the head
> section of a web page?

No - not if it's only inside the script-tags....
But it is wrong if you have a document.write() in a function somewhere
and call it after the page has already loaded - then it can create the
problems you described.

I think you already got an answer earlier with tips how to change the
document after it loads instead of using write().....

/Elin



More information about the thelist mailing list