lang 예제
<p id="hz" lang="ko">홈짱닷컴 Homzzang.com</p> <button onclick="homzzang()">클릭</button> <p id="demo"></p> <script> function homzzang() { var x = document.getElementById("hz").lang; document.getElementById("demo").innerHTML = x; } </script> 결과보기
<p id="hz" lang="ko">홈짱닷컴 Homzzang.com</p>
<button onclick="homzzang()">클릭</button>
<p id="demo"></p>
<script>
function homzzang() {
var x = document.getElementById("hz").lang;
document.getElementById("demo").innerHTML = x;
}
</script>
결과보기