Results 1 to 3 of 3

Thread: document.write

  1. #1

    Thread Starter
    Fanatic Member prog_tom's Avatar
    Join Date
    May 2001
    Location
    Los Angeles and Little Rock
    Posts
    810

    Post document.write

    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?

    prog_tom
    JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
    http://physics.sviesoft.com/forum

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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>
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width