<!DOCTYPE html>

<html>

<head>

<meta charset="EUC-KR">

<title>Insert title here</title>

<script type="text/javascript">

function show() {

var str = form1.edt.value;

var mywindow = window.open("", "", "width=200, height = 300");

mywindow.document.write(str);


}

function Clear(){

form1.edt.value = "";

}


</script>

</head>

<body>

<form name="form1">

<input type="button" value="웹브라우저로 보기" onclick="show()"> <input

type="button" value="새 문서" onclick="Clear()"> <input

type="reset" value="새 HTML작성"></br>

<textarea rows="10" cols="50" name="edt">

<html>

<head>

<meta charset="EUC-KR">

<title>Insert title here</title>

</head>

<body>

<h1>첫번째 문서</h1>

</body>

</html>


</textarea>

</form>

</body>

</html>

블로그 이미지

왕왕왕왕

,