자바스크립트 팝업창 띄우기
자바스크립트 팝업창 띄우기 심플소스입니다.
<!DOCTYPE html>
<head>
<title> pop up Main </title>
<script language="javascript">
function openWin(_url, _width, _height) {
window.open(_url, "popup", "width="+_width+", height="+_height+", resizable=no, scrollbars=no") ;
}
/*
옵션 설명
menubar yes/no : 윈도우 menubar 표시여부
toolbar yes/no : 윈도우 toolbar 표시여부
location yes/no : 윈도우 location box 표시여부
directories yes/no : 윈도우 directory button들의 표시여부
status yes/no : 윈도우 상태표시바 표시여부
scrollbars yes/no : 윈도우 scrollbar 표시여부
resizable yes/no : 윈도우 크기가 조정될 수 있는 지 여부
width : 윈도우 너비
height : 윈도우 높이
*/
</script>
</head>
<body>
<br>
<div>
<a href="javascript:openWin('popup.html','300','300')">팝업창 띄우기</a>
</div>
</body>
</html>
이렇게 해주고 같은 폴더에 popup.html파일이 있으면 팝업창이 뜹니다.