Everytime I use document.write it just erases everything and starts a new page and then write. How do I just like write onto the current page?
Printable View
Everytime I use document.write it just erases everything and starts a new page and then write. How do I just like write onto the current page?
Unless I misunderstood you, it doesn't do that to me. Using IE5.5:
Code:what's up
<script>
document.write('dude');
</script>?<script>
document.write('?!');
</script>
If you use document.write AFTER the page has loaded, it will do what you're describing. It must be within your HTML, and you can't use document.write in some "event" such as onclick or whatever.
Hope that helped.