change alert message text color using javascript
<p>Am using the below script to change the color of the script but showing 'font color="red">Hello world /font> like this.Is any possible way to change the alert text color..</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;JavaScript String fontcolor() Method&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;script type="text/javascript"&gt;

var str = new String("Hello world");

alert(str.fontcolor( "red" ));

&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
