|
-
Jun 28th, 2001, 06:12 AM
#1
Thread Starter
Hyperactive Member
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
-
Jun 28th, 2001, 07:08 AM
#2
var yourString='write whatever you need';
parent.document.write ("yourString");
yourString='';
parent.document.write ("yourString");
-
Jun 28th, 2001, 11:53 AM
#3
Thread Starter
Hyperactive Member
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
-
Jun 28th, 2001, 05:00 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|