<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 2</title>
<script>
function a(){
window.open("xxx.htm","","top=0");
}
</script>
</head>
<body>
<input type="button" name="123" onclick="return a();" value="click me">
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 2</title>
<script>
function a(){
window.open("xxx.htm","","top=0");
}
</script>
</head>
<body>
<input type="button" name="123" onclick="return a();" value="click me">
</body>
</html>
var meizz = window.open("about: <body bgcolor=#000000>","win","width=640");
meizz.blur();
self.focus();
ontopIntervalHandle = meizz.setInterval("window.opener.meizz.focus();",10);
</script>
用window.showModalDialog()和window.showModelessDialog()可以让弹出的窗口永远在最上层,但是在这样的弹出窗口里的链接,一点击就会又重新打开一个窗口。不知楼主对这个问题有什么好的解决方法没有?
<body onBlur="this.focus();">
1.如果主窗口用不着接收消息,就用模态窗口;
2.如果主窗口想接收消息,就用非模态窗口;
在<HEAD>标签中上加入
<BASE Target="_parent"></BASE>
或
<BASE Target="_self"></BASE>
那我打开IE之外的程序,怎么实现