Get small String : String « Data Type « JavaScript DHTML






Get small String

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

    
      
        
    
  








Related examples in the same category

1.Get char at
2.String big
3.String blink
4.Make string bold
5.Create anchor from a string
6.Get char Code
7.Concat String
8.String escape
9.Escape double quote
10.Including a special character in a string
11.String font Color
12.String font Size()
13.String index Of
14.Combine indexOf and substring methods to get the anchor part of a url
15.Search the string and counts the number of e's
16.String from Char Code
17.String in italics
18.String last Index Of
19.String length
20.Compare string in locale format
21.Make String link
22.Match string
23.String replace
24.Slice a string
25.Split a string
26.Return strike String
27.String sub() Example
28.Get sub string (substr())
29.Use substring method to get the sub string
30.Get super script (sup)
31.Get Locale Lower Case string (toLocaleLowerCase)
32.Get Locale Upper Case string (toLocaleUpperCase)
33.Get Lower case String (toLowerCase)
34.Get Upper Case string (toUpperCase)
35.'unescape()' Example
36.Check the first letter of a name
37.Use String.indexOf method to validate an email address
38.Validate a time value input with string.indexOf method
39.Return string value from a function
40.Tab string character
41.Adding trim function to String
42.Double quote string character
43.Single quote string character
44.Back slash string character
45.Backspace string character
46.Capitalize Words
47.Count Words