Javascript String HTML Methods

Introduction

The following table lists the String methods which can output html code.

These methods are deprecated and are no longer recommended.

Method Output
anchor(name)<a name="name ">string</a>
big() <big>string</big>
bold() <b>string</b>
fixed() <tt>string</tt>
fontcolor(color)<font color="color">string</font>
fontsize(size) <font size="size">string</font>
italics() <i>string</i>
link(url) <a href="url">string</a>
small() <small>string</small>
strike()<strike>string</strike>
sub() <sub>string</sub>
sup() <sup>string</sup>



PreviousNext

Related