1. 교재 예제
    1. ex10-01.html
    2. ex10-02.html
    3. ex10-03.html
    4. ex10-04.html
    5. ex10-05.html
    6. ex10-06.html
    7. ex10-07.html
    8. ex10-08.html
    9. ex10-09.html
    10. ex10-10.html
    11. ex10-11.html
    12. ex10-12.html
    13. fig10-01.html
  2. BOM(Browser Object Model) 객체들
    1. window – 브라우저 윈도우 모양 제어. 새 윈도우 열기/닫기
    2. navigator – 브라우저에 대한 다양한 정보 제공
    3. history – 브라우저 윈도우에 로드한 URL 리스트의 히스토리 관리
    4. location – 브라우저 윈도우에 로드된 HTML 페이지의 URL 관리
    5. screen – 브라우저가 실행되고 있는 스크린 장치에 대한 정보 제공
  3. 윈도우 열기
    1. window.open(URL, sWindowName, sFeature);
    2. 윈도우 이름(sWindowName)
      1. _blank : 이름 없는 새 윈도우를 열고, 웹 페이지 로드
      2. _parent : 현재 윈도우(혹은 프레임)의 부모 윈도우에 웹 페이지 로드
      3. _self : 현재 윈도우에 웹 페이지 로드
      4. _top : 브라우저 윈도우에 웹 페이지 로드
    3. 사용 예
    4. window.open(“http://www.naver.com”, “”, “”);
    5. window.open(“sample.html”, “myWin”, “toolbar=yes”);
    6. window.open(“sample.html”, “_self”);
    7. window.open(“sample.html”, “_blank”);
    8. window.open(“http://www.naver.com”, “myWin”, “left=10,top=10,width=300,height=400”);
    9. window.open(“http://www.naver,com”);
    10. window.open(“http://www.naver,com”, null, “”);
    11. window.open();                       //빈 창 열기
    12. window.open(“”);                    //빈 창 열기
    13. window.open(“”, “”, “”);         //빈 창 열기
    14. window.open(“”, null, null);  //빈 창 열기
  4. 윈도우 닫기
    1. window.close();
    2. let win = window.open(); // 새 윈도우 생성

      win.close(); // 자신이 만든 윈도우 닫기
  5. 예제 10-01 
error: Content is protected !!