W. Kent Starr wrote:

>if (document.all) document.all.atext.innerTEXT = "text2"
>else document.getElementById("atext").innerHTML = "text2" 
>
W3C DOM has no innerHTML as far as I understand, it is MS invention used 
only in their standard, so it should be:
document.getElementById("atext").value="text2"

the if/else hack is needed only to support browsers of IE <= 4.0, as IE 
5.0 supports at least the basic parts of W3C DOM.


Idan.