<script>
= function(){
<PRE class=javascript name="code">if(().indexOf("msie")==0){ //firefox innerText
.__defineGetter__( "innerText",
function(){
var anyString = "";
var childS = ;
for(var i=0; i<; i++) {
if(childS[i].nodeType==1)
anyString += childS[i].tagName=="BR" ? '\n' : childS[i].textContent;
else if(childS[i].nodeType==3)
anyString += childS[i].nodeValue;
}
return anyString;
}
);
.__defineSetter__( "innerText",
function(sText){
=sText;
}
);
};</PRE>var test = ("test");<BR>
var innerText_s = ;<BR>
if( innerText_s == undefined ){<BR>
alert( ); // firefox<BR>
}else{ <BR>
alert( );<BR>
};<BR>
<BR>
<BR>
}<BR>
<BR>
<BR>
</script><BR>
<PRE></PRE>
<P><BR>
</P>
<P>html code</P>
<P><div ><BR>
<span style="color:red">test1</span> test2<BR>
</div><BR>
</P>