웹마스터 팁

자동 팝업창 1

<script>
popup=window.open("파일 주소","popup","scrollbars=0,width=500,height=400")
</script>



자동 팝업창 2

<script language="JavaScript">

<!--

function TripodShowPopup()
{
// open the popup window
var popupURL = "파일 주소"; var popup = window.open(popupURL,"TripodPopup",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=500,height=150');
// set the opener if it's not already set. it's set automatically
// in netscape 3.0+ and ie 3.0+.
if( navigator.appName.substring(0,8) == "Netscape" ) { popup.location = popupURL; }
}

TripodShowPopup();

// -->

</script>

status=0 - 상황바 사용불가
menubar=0 - 팝업창 메뉴바 사용불가
scrollbars=0 - 팝업창 스크롤바 사용불가
resizable=0 - 팝업창 사이즈 조절 불가
width=500 - 팝업창의 넓이
height=150 - 팝업창의 길이