Evertjan. wrote:
Jeff wrote on 11 okt 2003 in comp.lang.javascript:
Hello everyone,
It's possible to change the XXX in this statement with JS?
<span id="myspan" class="standard-text">XXX</span>
document.getElementById("myspan").innerHTML = "with JS"
;-)
document.getElementById("myspan").firstChild.nodeV alue = "with JS";
is faster, more efficient, is very well supported by current browsers
and is entirely compliant with DOM 2.
innerHTML versus nodeValue performance comparison
http://www10.brinkster.com/doctorunc...NodeValue.html
DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunc...e7Section.html