JavaScript Reference/Javascript Methods/bold

Материал из Web эксперт
Перейти к: навигация, поиск

"bold()" Example

    
<html>
<body>
<button onclick="var myS = new String("www.wbex.ru"); 
                 document.write("www.wbex.ru"+myS.bold());">make string bold</button>
</body>
</html>



"bold()" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |String                                                        |
+----------------+--------------------------------------------------------------+



"bold()" Syntax, Parameters and Note

Note:
Draw a string in bold.
    
Syntax:
    
stringName.bold()