big()

The big() method is used to display the contents of the given string in a font size larger than the surrounding text. The face of the chosen font within the document is not specified using this method. The outputted text is treated as though it is encompassed within the opening and closing HTML tags.

syntax:

stringName.big()

EXAMPLE

var bigText = new String("This text is big. ");

document.write(bigText.big() + "This text isn't")

The example shows the creation of a new string called bigText. The document.write statement is then used to write the contents of bigText to the screen utilizing the big() method to display the text in a font size larger than the surrounding text within the browser.