JavaScript Reference/Javascript Methods/strike

Материал из Web эксперт
Перейти к: навигация, поиск

"strike()" Example

    
<html>
<body>
<button onclick="var myS = new String("Sample String"); 
                 document.write("regular string"+myS.strike());">
STRIKE string</button>
</body>
</html>



"strike()" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |String                                                        |
+----------------+--------------------------------------------------------------+



"strike()" Syntax, Parameters and Note

Note:
Cross out a string.
    
Syntax:
    
stringName.strike()