팝업창 넣을 때 쉽게 적용할 수 있는 코드입니다.
@<haed></haed>사이
<script language="JavaScript">
<!--
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
// -->
</script>
@<body>안에
<!--body-->
<body OnLoad="na_open_window('win', 'http://해당html문서', 200, 250, 300, 350, 0, 0, 0, 0, 0);">
<!--
200 →새창이뜰 가로위치
250 →새창이뜰 세로위치
300 →새창의 가로크기
350 →새창의 세로크기
-->
Leave a Reply 응답 취소