JavaScript Reference/Javascript Methods/small

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

"small()" Example

    
<html>
<body>
<button onclick="var myS = new String("Sample String"); 
                 document.write("regular string"+myS.small());">
                 SMALL</button>
</body>
</html>



"small()" is applied to

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



"small()" Syntax, Parameters and Note

Note:
Render a string in a smaller font size.
    
Syntax:
    
stringName.small()