網頁自動跳出新視窗語法

window.open 參數定義

<script language="javascript">
<!--
var gt = unescape('%3e');
var popup = null;
var over = "Launch Pop-up Navigator";
popup = window.open('', 'popupnav', 'width= 100,height= 100,resizable=1,scrollbars=auto');
if (popup != null) {
if (popup.opener == null) {
popup.opener = self;
}
popup.location.href = '網址';
}
// -->
</script>

沒有留言:

張貼留言