JavaScript Reference/Javascript Methods/small

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

"small()" Example

   <source lang="javascript">
   

<html> <body> <button onclick="var myS = new String("Sample String");

                document.write("regular string"+myS.small());">
                SMALL</button>

</body> </html>


     </source>
   
  


"small()" is applied to

   <source lang="javascript">

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

     </source>
   
  


"small()" Syntax, Parameters and Note

   <source lang="javascript">

Note: Render a string in a smaller font size.

Syntax:

stringName.small()


     </source>