Results 1 to 4 of 4

Thread: Desperate for JavaScript Help!

  1. #1

    Thread Starter
    Hyperactive Member CaptainPinko's Avatar
    Join Date
    Jan 2001
    Location
    London, Ontario, Canada
    Posts
    332

    Exclamation Desperate for JavaScript Help!

    I've written some stuff using
    Code:
    parent.document.write ("");
    but now I want to remove everything that I have presviously written. Any Ideas? Plz comment...
    "There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein

    If you are programming in Java use www.NetBeans.org

  2. #2
    Sadovod
    Guest
    var yourString='write whatever you need';

    parent.document.write ("yourString");


    yourString='';

    parent.document.write ("yourString");

  3. #3

    Thread Starter
    Hyperactive Member CaptainPinko's Avatar
    Join Date
    Jan 2001
    Location
    London, Ontario, Canada
    Posts
    332

    Question

    My problem is that when I run it (in the way you suggested, which I had before anyway), it appends the text to what i already have instead of replacing the previous content. Now here is the kicker:
    I ran the same page (literally) on Mac IE 4.5 and it works fine (ie. replaces the previos content) but on my Win ME IE 5.5 it appends... so I was looking for a way to guarantee that it would replace. But now I'm thinking maybe my browser is corrupt oe somwthing.... any ideas?!? PLZ!!!!

    THNX in advance
    "There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein

    If you are programming in Java use www.NetBeans.org

  4. #4
    Sadovod
    Guest
    If you'll be more specific and show us more of your code
    here, than we can take a deeper look into this problem.

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