I need to change the font color.
I have the following:
var clr=\"green\"; \' + onlineff + \'
Try like this:
var clr = 'green'; var html = '' + onlineff + ' ';
This being said, you should avoid using the tag. It is now deprecated. Use CSS to change the style (color) of a given element in your markup.