javascript

팝업창 띄우기

bongdal 2012. 9. 26. 14:38
<script type="text/javascript">
/*
 * 함수명 : openWin
 * 설명 : 새창 팝업
 * 사용법 :onclick="openWin('경로','가로사이즈','세로사이즈'); return false;"
 */
function openWin(url,intWidth,intHeight) {
	window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",resizable=1,scrollbars=0") ;
}

function openWin1(url,intWidth,intHeight) {
	window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",resizable=1,scrollbars=1") ;
}
</script>

<a href="javascript:openWin('pop_multi_form.html','700','400');">팝업창 띄우기</a>