Is it possible to delay document.write("blah blah ..")?



On page load, is it possible to write out something to the browser
using

document.write("blah blah ...");

And then pause for 2 seconds and write out something else like

document.write("something funny...");

Javascript does not seem to have a sleep function. I've tried

setTimeOut("myFunction()", mydelay);

It does not work.

Any idea? Thanks.
.



Relevant Pages

  • Re: Is it possible to delay document.write("blah blah ..")?
    ... document.write("blah blah ..."); ... And then pause for 2 seconds and write out something else like ... document.write after page load overwrites the the document. ... And blocking the page load for two seconds does not sound like a good idea. ...
    (comp.lang.javascript)
  • Re: the future of applications in JavaScript?
    ... more than one server has to be up for success. ... I can't imagine that a brower rendering engine needs to be hand written ... One is make the browser smarter and have longer load times ...
    (comp.lang.javascript)
  • Re: Another IE Back Button Problem/Page Loading Problem
    ... Highlight Internet and choose Custom Level. ... Usually it will make a clicking noise when it stop load what was ... >> related to active x settings or other settings. ... if you just opened your browser and this ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: How do we get there from here?
    ... > google maps, google groups, google mail, etc for starters. ... They all look like CSS with DHTML. ... their browser; even if that means incorrectly implementing the W3 HTML DOM ... have to not only wait for the JS to load, ...
    (comp.databases.pick)
  • Re: Another IE Back Button Problem/Page Loading Problem
    ... When I load the opening page in ebay or other similar pages it will not load ... The only suggestion that had any effect was changing the settings for the ... if you just opened your browser and this was ... > link to open in a new window breaks the Back button. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)