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.
No. alert() accepts a string and renders it using a native widget. There is no provision to style it.