JavaScript String Object
The fixed() method is used to display a string as teletype text.
This method returns the string embedded in the <tt> tag, like this:
<tt>string</tt>
![]()
The fixed() method is supported in all major browsers.
Display text as teletype text:
JavaScript String Object
Your message has been sent to W3Schools.