html/html_css2014. 1. 21. 14:10

window.open() 사용법 

 
windows.open("새창으로 열 페이지 주소",""새창의 이름","옵션");
 
ex)

<a href="#" ="window.open('http://www.naver.com', 'naver', 'top=100px, left=100px, height=800px, width=800px')">네이버 새창열기</a>

 

 

  menubar=no  //메뉴바 없애기

  toolbar=no // 툴바 없애기

  Location=no  //주소표시줄 없애기

  status=no //상태표시줄 없애기

  scrollbars=no //스크롤바 없애기

  resizable=no // 리사이저블

  fullscreen //최대창크기로 열기 =>F11 눌린 크기이긴 하지만, F11과는 다른 기능임

  width //가로크기

  height //세로크기

  top //위에서부터 위치

  left //왼쪽에서부터 위치

 


Posted by 갓리버리