반응형
1)
<a href="#" onclick="javascript:window.open('경로','new','left=50, top=50, width=800, height=600')">링크</a>
클릭하면 왼쪽, 위 여백을 50씩 주고
800*600 크기의 새창을 띄운다.
2)
들어올 때 새창 열기
<script language="JavaScript">
function notice()
{
window.open ('경로','','location=no, directories=no, resizable=no, status=no, toolbar=no,
menubar=no, width=300, height=400, left=0, top=0, scrollbars=no');
}
</script>
location : 주소표시줄
directoryies : 연결
resizable : 크기조절
status : 상태표시줄
toolbar : 표시단추
memubar : 메뉴
width : 새창 너비
height : 새창 높이
left : 새창 왼쪽 위치
top : 새창 위쪽 위치
location : 주소표시줄
directoryies : 연결
resizable : 크기조절
status : 상태표시줄
toolbar : 표시단추
memubar : 메뉴
width : 새창 너비
height : 새창 높이
left : 새창 왼쪽 위치
top : 새창 위쪽 위치
yes와 no대신 1과 0도 사용 가능 (yes = 1, no = 0)
반응형