<a href="#" onclick="winopen('a.html','','width=250,height=200')" >1111111111</a>
<br>
<a href="#" onclick="winopen('a.html','','width=250,height=200')" >2222222222</a>
<br>
<a href="#" onclick="winopen('a.html','','width=250,height=200')" >3333333333</a>我的要求是先点1111111111,弹出一个窗口a.html,然后把这窗口最小化,再点2222222222,这个窗口a.html从任务栏里弹回到页面上。这要怎么做啊,JS不太行,大家帮我看看啊
<br>
<a href="#" onclick="winopen('a.html','','width=250,height=200')" >2222222222</a>
<br>
<a href="#" onclick="winopen('a.html','','width=250,height=200')" >3333333333</a>我的要求是先点1111111111,弹出一个窗口a.html,然后把这窗口最小化,再点2222222222,这个窗口a.html从任务栏里弹回到页面上。这要怎么做啊,JS不太行,大家帮我看看啊
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>new page</title>
<script>
var newWin;
function openWin(){
newWin=window.open('a.html','','width=250,height=200');
showWin();
}
function hiddenWin(){
newWin.focus();
newWin.minWindow.Click();
}
function showWin(){
newWin.focus();
}
</script>
</head><body>
<a href="#" onclick="openWin()" >打开窗口</a>
<br>
<a href="#" onclick="hiddenWin()" >最小化</a>
<br>
<a href="#" onclick="showWin()" >还原窗口</a>
</body>
</html>//a.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>a</title>
</head>
<body>
a.html
<object id=minWindow type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Minimize"></object>
</body>
</html>
<br>
<a href="#" onclick="ss()" >2222222222</a>
<br>
<a href="#" onclick="ss()" >3333333333</a>
<script>
qq=null
function ss()
{
if(qq==null)
qq=window.open('a.html','sss','width=250,height=200')
else
qq.focus();
//alert(qq);
}</script>
不知道这样是不是你的要求
如果是的话给分