strike() 예제
<button onclick="homzzang()">클릭</button> <p id="demo"></p> <script> function homzzang() { var str = "홈짱닷컴 Homzzang.com"; var res = str.strike(); document.getElementById("demo").innerHTML = res; } </script> 결과보기
<button onclick="homzzang()">클릭</button>
<p id="demo"></p>
<script>
function homzzang() {
var str = "홈짱닷컴 Homzzang.com";
var res = str.strike();
document.getElementById("demo").innerHTML = res;
}
</script>
결과보기
결과값: 홈짱닷컴 Homzzang.com
<strike> 태그는 HTML5에서 지원 안 함. CSS 이용 !!