Javascript delay problem... help please!
Posted: Fri May 18, 2007 9:16 pm
If I use this:
In my html code, it prints fine like normal text.
But.... if I use this to create a delay before writing the text, it creates a new blank page with only the written text:
Is there any way for me to put a delay before writing the text without it creating a new page?
Thanks!
Code: Select all
<script>
document.writeln('<p>What ever you want to write<\/p>');
</script>But.... if I use this to create a delay before writing the text, it creates a new blank page with only the written text:
Code: Select all
<script>
setTimeout(\"document.write('<p>What ever you want to write<\/p>')\",500);
</script>Is there any way for me to put a delay before writing the text without it creating a new page?
Thanks!