[thelist] document.write

Matthew Lockwood stressed_dweeb at hotmail.com
Sun Jun 17 16:19:57 CDT 2001


damn... so there is no way to use document.write with a repeating function 
that is called onLoad in the <body> tag??


>From: "Joshua Olson" <joshua at alphashop.net>
>Reply-To: thelist at lists.evolt.org
>To: <thelist at lists.evolt.org>
>Subject: RE: [thelist] document.write
>Date: Sun, 17 Jun 2001 13:59:02 -0700
>
>document.write() will overwrite the document if the document is already 
>done
>rendering.  So, it should be used not within a function, OR, within a
>function that is called as the page is loaded.  So, this should be okay
>
><script language="JavaScript">
>   function myfunct()
>   {
>     document.write('Hello, world.');
>   }
>
>   myfunct();
></script>
>
>Where as calling myfunct from
>
><input type="button" value="click me" onclick="myfunct(); return false;">
>
>will have undesirable results.
>
>HTH,
>
>-joshua
>
>-----Original Message-----
>[mailto:thelist-admin at lists.evolt.org]On Behalf Of Matthew Lockwood
>Sent: Sunday, June 17, 2001 1:42 PM
>Subject: [thelist] document.write
>
>
>does anyone know how to solve the problem of using document.write in
>functions??
>I have just done that and found that it opens a new page and only writes 
>the
>stuff inside the brackets after the document.write.... which isn't what I
>want at all.
>
>Is there any special way to stop this from happening or can you just simply
>not do this in functions.
>
>cheers
>
>M@
>
>
>---------------------------------------
>For unsubscribe and other options, including
>the Tip Harvester and archive of TheList go to:
>http://lists.evolt.org Workers of the Web, evolt !

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





More information about the thelist mailing list