- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <!-- 현재 작성하고 있는 파일은 UTF-8 DOS파일입니다.-->
- <html xmlns="http://www.w3.org/1999/xhtml" lang="ko">
- <head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- </head>
- <body>
- <div id="ex_js_syntax">
- <pre>
- <script type="text/javascript" language="javascript">
- <!--
- /* 문서 쓰기 => document.writewrite("문자열") 또는 document.writewriteIn("문자열")
- document.writewrite()와 document.writewriteIn()차이
- [\n이 자동적으로 추가 유무] */
- document.write("\r");
- document.write("text_write1");
- document.write("text_write2");
- document.write("text_write3");
- document.write("\n\n");
- document.writeln("text_writeln1");
- document.writeln("text_writeln2");
- document.writeln("text_writeln3");
- //-->
- </script>
- </pre>
- </div>
- </body>
- </html>
--------------------------------------------------------------------------------------------
위 소스 예제 보기
문서 쓰기 => document.writewrite("문자열") 또는 document.writewriteIn("문자열")
document.writewrite()와 document.writewriteIn()차이->[\n이 자동적으로 추가 유무]
document 속성 보기(접어두었습니다.)
출처 & 인용 - http://www.w3schools.com/
'javascript > Document()객체' 카테고리의 다른 글
document객체 URL 주소(URL)정보 (0) | 2014.02.09 |
---|---|
document객체 domain 도메인정보 (0) | 2014.02.09 |
document객체 cookie 쿠키정보 (0) | 2014.02.09 |
document객체 readyState 로딩상태 (0) | 2014.02.09 |
document 객체 속성(dom object) (0) | 2014.02.09 |