document.open() 예제
<button onclick="homzzang()">클릭</button> <script> function homzzang() { document.open(); document.write("<h1>홈짱닷컴 Homzzang.com</h1>"); document.close(); } </script> 결과보기
<button onclick="homzzang()">클릭</button>
<script>
function homzzang() {
document.open();
document.write("<h1>홈짱닷컴 Homzzang.com</h1>");
document.close();
}
</script>
결과보기