Quantcast
Viewing all articles
Browse latest Browse all 88

How to do strike through string for javascript

I want to strike through text in Javascript but I can't seem to get the code to work.

var message = document.getElementById('helloWorld');setTextContent(message, 'hello world!'.strike());

Would appreciate any help. Would also like to do it without using css.

Should Also mention that these lines of code are inside another function called totalPackage() which runs when the user clicks a button. I want my message hello world! to be displayed when this other function is called.


Viewing all articles
Browse latest Browse all 88

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>