String big() Method - Javascript String

Javascript examples for String:big

Description

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>

Parameters

None.

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>
<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>

Related Tutorials