[Javascript] Comparing Strings
Triche Osborne
wdlists at triche-osborne.com
Thu Aug 25 09:10:11 CDT 2005
Timothy White wrote:
>
> So what should I use instead of innerHTML?
>
Kinda depends on how your XHTML is structured, but let's say you have a
DIV, thus:
<div id="replaceThis">Text to be replaced.</div>
You'd do something like:
var replacementText = "Hi there!";
var theNode = document.getElementById(nodeId);
theNode.firstChild.data = replacementText;
Triche
More information about the Javascript
mailing list