Easy Tutorial
❮ Event Onfocusin Prop Anchor Name ❯

JavaScript fixed() Method


Definition and Usage

The fixed() method is used to display a string as teletype text.

This method returns the string with the <tt> tag, as shown below:

<tt>string</tt>

Syntax


Browser Support

All major browsers support the fixed() method.


Example

Display a string in teletype text:


❮ Event Onfocusin Prop Anchor Name ❯