'textDecorationLineThrough' Example : textDecorationLineThrough « CSS Attributes and Javascript Style Properties « HTML CSS Reference






'textDecorationLineThrough' Example

    
<html>
<body>
<p id="myT">Text sample.</p>
<input type="button" 
       value="decoration:lineThrough" 
       onclick="myT.style.textDecorationLineThrough='true'">

<input type="button" 
       value="decoration:none" 
       onclick="myT.style.textDecorationNone='true'">
</body>
</html>

    
      
      








Related examples in the same category

1.'textDecorationLineThrough' Syntax and Note
2.'textDecorationLineThrough' Possible Values
3.'textDecorationLineThrough' is applied to