개발관련/웹개발
window.open 속성
규이
2008. 4. 1. 17:03
1. width : 창 가로길이 지정
2. height : 창 세로길이 지정
3. toolbar : 단축도구창 유무 지정 [no, yes]
4. menubar : 메뉴창 유무 지정 [no, yes]
5. location : 주소창 유무 지정 [no, yes]
6. scrollbars : 스크롤바 유무지정 [no, yes]
7. status : 아래 상태바창 유무 지정 [no, yes]
8. realzable : 창변형 유무 지정 [no, yes]
9. fullscreen : 전체화면 유무 지정 [no, yes]
10. channelmode=yes : 앞&뒤로 창최소화,닫기등을 설정 (F11키랑 같음)
11. left=0, top=0 : 창을 왼쪽 구석에 고정
예를 들어
window.open("파일명", "윈도우이름","창속성");
winname = window.open("aa.jsp","aaa","width=300 height=400 menubar=no status=no");
winname.close(); // open한 새창을 닫을때
window.close(); //현재창을 닫을때