#적용할 JavaScript
<script language="JavaScript" type="text/javascript">
function winOpenWH(goto,w,h){
window.open(goto,null,"location=yes,scrollbars=yes,resizable=yes,width="+w+",height="+h+";");
}
</script>
다른 변수들을 활용코자 할 때, Method 확인
# 본문에 적용될 내용
<button type="button" onclick="javascript:winOpenWH('http://edition.cnn.com/US/studentnews/quick.guide/archive/','670','800')">CNN Student News Archive</button>
# 추가 응용 스크립트 (from ihelpers, 손상모님 작성)
<SCRIPT LANGUAGE="JavaScript">
<!--
function openWindowFrameless(url,winname,x,y){
win = window.open( "" ,winname, "fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+x+",height="+y+";");
var cx = Math.ceil( (window.screen.width - x) / 2 );
var cy = Math.ceil( (window.screen.height - y) / 2 );
win.resizeTo( Math.ceil( x ) , Math.ceil(y) );
win.moveTo ( Math.ceil( cx ) , Math.ceil( cy ) )
win.document.location.replace(url);
}
openWindowFrameless("http://www.hagopa.co.kr","아이헐퍼스",500,500);
//-->
</SCRIPT>
<!--
function openWindowFrameless(url,winname,x,y){
win = window.open( "" ,winname, "fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+x+",height="+y+";");
var cx = Math.ceil( (window.screen.width - x) / 2 );
var cy = Math.ceil( (window.screen.height - y) / 2 );
win.resizeTo( Math.ceil( x ) , Math.ceil(y) );
win.moveTo ( Math.ceil( cx ) , Math.ceil( cy ) )
win.document.location.replace(url);
}
openWindowFrameless("http://www.hagopa.co.kr","아이헐퍼스",500,500);
//-->
</SCRIPT>