string.sup() : sup « String « JavaScript Tutorial






The sup() method converts the string to an instance of the tag.

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

    document.write(myString.sup());

    document.close();

    -->

    </script>
</html>








6.32.sup
6.32.1.string.sup()