Applies to: String Object
The small method places HTML <SMALL> tags around text in a String object.
Syntax
strVariable.small( )
"String Literal".small( )
Return value
None
Example
The example that follows demonstrates how the small method works:
<head> <script language="JavaScript"> function smallTag() { var strVariable = "This is a string"; strVariable = strVariable.small( ); return strVariable; } </script> </head> <body> <p> See how it work in Html <script language="JavaScript"> document.write(smallTag()); </script> </p> </body>
|
To run the code, paste it into JavaScript Editor, save as htm file format and click the Show Internal View button.
See also: big Method, String Object Methods, String Object Properties |