469,303 Members | 1,796 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,303 developers. It's quick & easy.

how do i pause then clear screen?

I'm trying to display some text, wait a few seconds, clear the screen, display
normal html.
Thanks for the answer in advance.

Kenny in Fredericksburg, Va.
Ke*******@aol.com
Jul 20 '05 #1
1 2014
JeeperDude wrote:
I'm trying to display some text, wait a few seconds, clear the screen,
display normal html.
Thanks for the answer in advance.

Kenny in Fredericksburg, Va.
Ke*******@aol.com


Try something like this:

<html>
<head>
<script type="text/javascript">
writesometext();
setTimeout("writesomehtml()",3000);

function writesometext(){
document.open();
document.write("Hello! I will disappear in 3000 millisecs");
document.close();
}

function writesomehtml(){
document.open();
document.write("<html>");
document.write("<body>");
document.write("<h1>hello</h1>");
document.write("</body>");
document.write("</html>");
document.close();

}
</script>
</head>
</html>
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by Tim Mierzejewski | last post: by
31 posts views Thread by da Vinci | last post: by
4 posts views Thread by Tim | last post: by
6 posts views Thread by kai | last post: by
22 posts views Thread by mp | last post: by
2 posts views Thread by eSolTec, Inc. 501(c)(3) | last post: by
2 posts views Thread by nickyeng | last post: by
nathj
11 posts views Thread by nathj | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.