JavaScript String - fixed() Method



Description

This method causes a string to be displayed in fixed-pitch font as if it were in a tag.

Syntax

Its syntax is as follows −

string.fixed( )

Return Value

Returns the string with tag.

Example

Try the following example.


   
      JavaScript String fixed() Method
   
   
      
            
   

Output

Hello world
javascript_strings_object.htm
Advertisements