Javascript examples for String:big
The big() method is used to display a string in a big font.
This method returns the string embedded in the <big> tag, like this: <big>string</big>
None.
A string embedded in the <big> tag
The following code shows how to Display a string in a big font:
<!DOCTYPE html> <html> <body> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {//w ww . j a va 2s . c om var str = "Hello World!"; var result = str.big(); document.getElementById("demo").innerHTML = result; } </script> </body> </html>