fontsize() in JavaScript

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

    document.write("Size=6: " + myString.fontsize(6));
    document.write("<br>Size=-2: " + myString.fontsize('-2'));
    document.close();
    -->

    </script>