fontcolor() in JavaScript

<script language="JavaScript">
    <!--
    var myString = new String("Hello, World!");

    document.write("Hex usage: " + myString.fontcolor('FF0000'));
    document.write("<br>Color usage: " + myString.fontcolor('blue'));
    document.close();
    -->
    </script>