Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JavaScript and AJAX (http://www.go4expert.com/forums/javascript/)
-   -   How to insert colored text in html page using javascript (http://www.go4expert.com/forums/insert-colored-text-html-page-using-t25148/)

anchitjindal07 4Mar2011 15:31

How to insert colored text in html page using javascript
 
Hi
I am inserting text in html page using javascript..But the font-color of this text is black by default. How to change the color of this text??

I am using createTextNode() and appendChild() functions to insert the text but not able to change the color using style.color property. How to accomplish this?
Please help..
Thanks a lot...


All times are GMT +5.5. The time now is 03:45.