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

BT Bigpant bigpant at btinternet.com
Thu Feb 21 06:06:03 CST 2002


using document.write after the page has loaded will put the html at the end
of the document. If you are wishing to put it in a specific place, you will
need to use innerHTML for IE, I forget what to use for NN.

HTH
Phil Parker

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Syed Zeeshan Haider
Sent: 20 February 2002 12:41
To: Evolt
Subject: [thelist] JavaScript: document.write() in head section


Hello Everybody,
Is there something wrong about writing document.werite() in the head
section of a web page? I have created a web page with all JavaScript in
head section. When I click a button, JavaScript is supposed to write
some message on the page. But sometimes it works and some time it
doesn't. When it does not work, I have to close the web page and then
open it again. What the problem is? I have inserted document.write()
into head section. Is this creating problem?
Thank you,
Syed Zeeshan Haider.
http://syedzeeshanhaider.faithweb.com/


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !




More information about the thelist mailing list