converts the string in the format like "
Where string_object is the object at which we have to apply the strike() method. It returns the copy of string sandwiched between the pair of <strike> tag.
Description of code:
First line of the function describes that we have created a variable "textToStrike" and thereafter we have taken the "divId" element's reference to show the string in strikethrough within "divId". Here is the full description code for "strikeMethodExample.html" as follows :
Input any text to apply strike() method over it.
As shown in output that it has stroked the text input.