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






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

<html>  
    <script language="JavaScript">
    <!--

    var myString = new String("Hello, World!");

    document.write(myString.bold());

    document.close();

    -->
    </script>
</html>








6.8.bold
6.8.1.string.bold()