Latest

recent

JavaScript strike() Method

Definition and Usage

The strike() method  is used to display a string with a strikethrough.

Syntax

stringObject.strike()


Example

In this example "Hello world!" will be displayed with a line trough it:

<script type="text/javascript">
var str="Hello world!";
document.write(str.strike());
</script>
JavaScript strike() Method Reviewed by 1000sourcecodes on 20:57 Rating: 5
Powered by Blogger.