About 306,000 results
Open links in new tab
  1. JavaScript String strike() Method - W3Schools

    The strike() method returns a string embedded in a <strike> tag: <strike>string</strike> The <strike> tag is not supported in HTML5.

  2. JavaScript String strike() Method - GeeksforGeeks

    Jun 3, 2024 · In JavaScript, the strike() method of the String object returns a new string that embeds the invoking string inside a <strike> element (<strike>str</strike>) which makes it …

  3. String.prototype.strike() - JavaScript | MDN - MDN Web Docs

    Mar 5, 2025 · The strike() method of String values creates a string that embeds this string in a element ( str ), which causes this string to be displayed as struck-out text.

  4. JavaScript: String strike() method - TechOnTheNet

    Let's take a look at an example of how to use the strike() method in JavaScript. For example: var totn_string = 'TechOnTheNet'; console.log(totn_string.strike()); In this example, we have …

  5. How to do strike through string for javascript - Stack Overflow

    Aug 17, 2013 · The right syntax of strike() is str.strike() so use like . setTextContent(message, 'hello world!'.strike());

  6. JavaScript strike () Method : String Object - w3resource

    Aug 19, 2022 · The strike () method is used to display a string as struck-out text, as if it were in a <strike> tag. Version. Implemented in JavaScript 1.0. Syntax. Parameter. None. Example: In …

  7. JavaScript String - strike() Method - Online Tutorials Library

    JavaScript String Strike - Learn how to use the String strike method in JavaScript to manipulate strings effectively. Discover practical examples and usage tips.

  8. JavaScript String strike() Method: Creating Strikethrough Text

    Feb 6, 2025 · Learn how to use the JavaScript String strike() method to create strikethrough text in HTML. Understand its syntax, usage, and practical examples.

  9. JavaScript strike() Method

    How to use strike() to display a string with a strikethrough. Complete String Object Reference Your browser does not support inline frames or is currently configured not to display inline …

  10. JavaScript strike method - roseindia.net

    We will illustrate you the use of strike () method with a very simple example here. We have created an input text box which takes the string input by the user and as soon as we click on …

  11. Some results have been removed
Refresh