JavaScript strike() Method
JavaScript String object
Definition and Usage
The strike() method is used to display a string with a strikethrough.
This method returns the string with an tag added, as shown below:
string
Syntax
string
.strike()
Browser support





All major browsers support the strike() method.
Example
Example
Use a strikethrough to display the string:
Try it »
JavaScript String object