Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

JavaScript fixed() Method

JavaScript fixed() Method

String Object Reference JavaScript String object


Definition and Usage

The fixed() method is used to display a string in a typewriter font.

This method returns the string with an tag added, as shown below:

string

Syntax

string

.fixed()


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the fixed() method.


Example

Example

Display a string as typewriter text:

Try it »


String Object Reference JavaScript String object