1-2.자바스크립트의 출력
*method-document.write
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
<head> <meta http-equiv="content-type" content="applicaton/xhtml+xml;charset=utf-8" />
<title> new document </title>
<script type="text/javascript">
//<![CDATA[
document.write("Hello Javascript! <br />");//매소드 동작
document.write("자바스크립트 <br />");//매소드 동작
document.write("Hello"+"Javascript <br />");//문자 연산자
document.write("Hello"+1004+1000+"<br />");//문자 연산자
document.write(1004+1000+"javascript <br />");//숫자연산자
document.write(true+"<br />");//논리형값
document.write(null+"<br />");//비어있는 값
//]]>
</script>
</head>
<body>
<noscript>
<p>스크립트 지원하지 않음</p>
</noscript>
</body>
</html>