영원한사랑

팝업 띄우기

인터넷정보2007. 10. 11. 16:34
<script>
function pop_open_nos(url,name,width,height){
var left = (screen.width-width)/2;
var top = (screen.height-height)/3;
var toolbar_str = 0;
var menubar_str = 0;
var statusbar_str = 0;
var scrollbar_str = 0;
var resizable_str = 0;
var property ='left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str
pop_result = window.open(url, name, property);
return pop_result;
}
</script>

<input name="" type="button" onClick="pop_open_nos('http://kr.yahoo.com','test',200,300);" value="실험">