String.italics() : italics « String « JavaScript Tutorial






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

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

    document.write(myString.italics());

    document.close();

    -->
    </script>
</html>








6.17.italics
6.17.1.String.italics()