This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C16EAA.9F6A15F0
Content-Type: text/plain
First of all, you need to have an absolutely position element (i.e. a layer
in Netscape 4).
For example:
<div id="lQDA" style="position:abolsute; left:10px; top:10px;
width:60px;">$0.00</div>
Then you need to script it like this:
document.layers["lQDA"].document.open();
document.layers["lQDA"].document.write("$5.00");
document.layers["lQDA"].document.close();
I you mean Netscape 6, the easiest way is to use this (although there are
more W3C-compliant way you can do this):
document.getElementById("lQDA").innerHTML = "$5.00";
/Robert
-----Original Message-----
From: Michael Bunger [mailto:michael@r...]
Sent: den 16 november 2001 15:16
To: javascript
Subject: [javascript] Is there an innerText substitute for Netscape on a
span?
Hi,
I have some <span> tags and I want to be able to change their values on the
client side. For example, one of them looks like
<span id="lQDA" style="width:60px;">$0.00</span>
I use the innerText to update the value. For example,
document.all.item("lQDA").innerText = "$5.00";
It works fine on IE; however, I find that it does not work on NetScape. Is
there another way to do this with NetScape?
Any help will be greatly appreciated.
Thanks,
Michael Bunger