String big() Method - Javascript String

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>



Return Value:

A string embedded in the <big> tag

The following code shows how to Display a string in a big font:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>

<button onclick="myFunction()">Test</button>

<p id="demo"></p>

function myFunction() {//w  ww . j  a  va  2s . c om
    var str = "Hello World!";
    var result = str.big();
    document.getElementById("demo").innerHTML = result;


Related Tutorials