Hi all,
I have this sample code:
var d=document.getElementById("txt");
d.innerText = d.innerText.toString() + "\n\n" + "<b>"+result+"</b>";
where 'txt' is of type <DIV>, and 'result' is some custom string. I
want to parse the result string and change some of the words to other
color. How do I do this? Is changing colors possible with innerText,
or should I use innerHTML. If so, how do I apply this using innerHTML?
Thanks,
JM
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/