var de = document.documentElement; de.onclick = function() { window.open('http://www.sina.com.cn'); de.onclick = null; }
var url = "自定义链接url"; var height = 窗口高度; var width = 窗口宽度 showModalDialog(url,param,"dialogHeight:"+height+"px;dialogWidth:"+width+"px; center:yes;help:no;resizable:no;status:no")
de.onclick = function()
{
window.open('http://www.sina.com.cn');
de.onclick = null;
}
var height = 窗口高度;
var width = 窗口宽度
showModalDialog(url,param,"dialogHeight:"+height+"px;dialogWidth:"+width+"px; center:yes;help:no;resizable:no;status:no")
具体baidu
<html>
<body>
<script>
var url = 'http://www.sina.com.cn';
var height = 500;
var width = 400;
showModalDialog(url,"","dialogHeight:"+height+"px;dialogWidth:"+width+"px; center:yes;help:no;resizable:no;status:no")
</script>
</body>
</html>
2L写的那个IE测试有效啊
<html>
<body>
<script>
var url = 'http://www.sina.com.cn';
var height = 500;
var width = 400;
showModalDialog(url,"","dialogHeight:"+height+"px;dialogWidth:"+width+"px; center:yes;help:no;resizable:no;status:no")
</script>
</body>
</html>
如果说你硬用弹出窗口,那么做管理的时会,用parent.这样来获取父窗口信息。