Javascript & JQuery & CSS > example - window.open ¿¹Á¦
µî·ÏÀÏ : 2017-07-04 19:30
Á¶È¸¼ö : 53,747
<SCRIPT LANGUAGE="JavaScript">
<!--
var win= null;
function NewWindow(mypage,myname,w,h,scroll)
{
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
var settings ='height='+h+',';
settings +='width='+w+',';
settings +='top='+wint+',';
settings +='left='+winl+',';
settings +='scrollbars='+scroll+',';
settings +='resizable=yes,';
settings +='menubar=yes,';
settings +='toolbar=yes';
}
win=window.open(mypage,myname,settings);
}
//-->
</script>
<center>
<a href = "test.asp" onclick = "NewWindow(this.href, 'name', '500', '500', 'yes')">
Ŭ¸¯</a>
</center>