웹프로그램
자바스크립트 팝업 화면 가운데 띄우기
세이박스
2008. 11. 7. 16:31
반응형
<script language='javascript'>
<!--
function popup_news(linkurl)
{
var width = 1024;
var height = 768;
var left = (screen.width) ? (screen.width-width)/2 : 0;
var top = (screen.height) ? (screen.height-height)/2 : 0;
var position = 'top='+top+',left='+left+',width='+width+',height='+height+',resizable=no,scrollbars=yes,menubar=no,toolbar=no,status=0';
var win_news = window.open(linkurl,'pop_news_window',position);
win_news.focus();
}
//-->
</script>
위 글은 세이박스에서 직접 작성한 것으로 퍼가실 경우 반드시 출처와 함께 남기시길 바랍니다.
출처 : 세이박스 http://saybox.tistory.com/
반응형