JavaScript String strike()

❮ JavaScript String Reference

Example

let text = "Hello World!";
let result = text.strike();
Try it Yourself »

Description

String strike() is deprecated in JavaScript.

Avoid using it.

It may cease to work in your browser at any time.

The strike() method returns a string embedded in a <strike> tag:

<strike>string</strike>

The <strike> tag is not supported in HTML5.


Syntax

string.strike()

Parameters

NONE

Return Value

A string embedded in a <strike> tag.

❮ JavaScript String Reference
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.