1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <!-- 현재 작성하고 있는 파일은 UTF-8 DOS파일입니다.-->
  3. <html xmlns="http://www.w3.org/1999/xhtml" lang="ko">
  4.   <head>
  5.     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6.   </head>
  7.   <body>
  8.     <div id="ex_js_syntax">
  9.       <pre>
  10.       <script type="text/javascript" language="javascript">
  11.       <!--
  12.           /* 문서 쓰기 => document.writewrite("문자열") 또는  document.writewriteIn("문자열")
  13.               document.writewrite()와 document.writewriteIn()차이
  14.               [\n이 자동적으로 추가 유무] */
  15.        document.write("\r");
  16.        document.write("text_write1");
  17.        document.write("text_write2");
  18.        document.write("text_write3");
  19.        document.write("\n\n");
  20.        document.writeln("text_writeln1");
  21.        document.writeln("text_writeln2");
  22.        document.writeln("text_writeln3");
  23.       //-->
  24.       </script>
  25.       </pre>
  26.     </div>
  27.   </body>
  28. </html>

--------------------------------------------------------------------------------------------

위 소스 예제 보기


document.write()

document.writeIn()


문서 쓰기 => document.writewrite("문자열") 또는  document.writewriteIn("문자열")


document.writewrite()와 document.writewriteIn()차이->[\n이 자동적으로 추가 유무]


document 속성 보기(접어두었습니다.)


출처 & 인용 - http://www.w3schools.com/


:
BLOG main image

공지사항

카테고리

분류 (356)
main (1)
php5 (218)
HTML (36)
javascript (93)
IT 이론과 퍼온정보 (8)
깨작일상 (0)
곧 추가할 내용 (0)
추후 알아볼것들... (0)

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

달력

«   2024/03   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Total :
Today : Yesterday :