怎么弹出一个新的窗口
作者:zjubbs 来源:未知 添加时间:2006-5-21 9:32:53<script><!--
function dic(page) {
window.open(page,"news","width=400,height=300,scrollbars=1,toolbar=0,r
esizable=0");
//window.focus();
return;
}
// -->
</script>
其中width、height表示窗口的大小,scrollbars是滚动条,toolbar是工具栏,
resizable表示可否由用户调整弹出窗口的大小。
然后在后面的要建立连接的地方用这样的方法:
<a href="javascript:dic('filename');">弹出新窗口</a>
其中,filename是新窗口中的文件的名称。
站内搜索