首先,你必须知道所有的窗口
其次,可以利用objWindow.document.title属性来进查找!
其次,可以利用objWindow.document.title属性来进查找!
解决方案 »
- 求助!JavaScript不执行,查了好多资料都解决不了。。
- JavaScript中的初始化?
- 在FireFox下,如何使div或者td显示为不可用,其对于的内容也为灰色
- jquery如何取出<a href>标签中的内容并组合起来啊?
- Ext3.2 关于动态树样式问题,求大神解答
- 用脚本如何把<INPUT type="file">文本筐里的文字设为空?
- 高手们,请帮我看看该怎么写才对
- 怎么用javascript实现这个功能:在一个页面包含上下2个Frame,在上方页面的一个button的onclick事件中要求把页面demo.htm显示在下方的Frame
- 主页面内嵌两个iframe,如何控制这两个iframe页面装载顺序
- 如何让javascript读一个文本文件并显示出来?
- 执行javascript:window.close(),如何让它不跳出窗口??
- 急,急,怎样控制屏蔽IE的Refresh按钮
var aa=new Array();
aa[0]=window.open("动画.htm","","top=200,width=200,height=200")
aa[1]=window.open("动画2.htm","","top=200,width=200,height=200")
function test(){
for(var i=0;i<aa.length;i++){
if("xxx"==(aa[i].document.title))
aa[i].focus();}
}
</script>
<input type=button onclick="test()" value="找窗口"><br>
动画.htm
=================
<head>
<title>xxx</title>
<script>
var tmId;
function moveit(){
if((parseInt(document.all.mxh.style.left))>300)
{
document.all.mxh.style.left="0";
document.all.mxh.style.top="0";
}
else
{
document.all.mxh.style.left=(parseInt(document.all.mxh.style.left)+3).toString()+"px"
document.all.mxh.style.top=(parseInt(document.all.mxh.style.top)+3).toString()+"px"
}
tmId=setTimeout('moveit()',20)
}</script>
</head>
<body onload="moveit()" bgcolor="#0099ff">
<div id=mxh style="position:absolute;left:0px;top:0px"><a href="http://lucky.myrice.com" target="_blank"><img src="http://lucky.myrice.com/javabk1.jpg" onmouseover="window.clearTimeout(tmId)" onmouseout="window.setTimeout('moveit()',20)" border=0></a></div>
动画2.htm
===============
<head>
<title>bbb</title>
<script>
var tmId;
function moveit(){
if((parseInt(document.all.mxh.style.left))>300)
{
document.all.mxh.style.left="0";
document.all.mxh.style.top="0";
}
else
{
document.all.mxh.style.left=(parseInt(document.all.mxh.style.left)+3).toString()+"px"
document.all.mxh.style.top=(parseInt(document.all.mxh.style.top)+3).toString()+"px"
}
tmId=setTimeout('moveit()',20)
}</script>
</head>
<body onload="moveit()" bgcolor="#0099ff">
<div id=mxh style="position:absolute;left:0px;top:0px"><a href="http://lucky.myrice.com" target="_blank"><img src="http://lucky.myrice.com/javabk1.jpg" onmouseover="window.clearTimeout(tmId)" onmouseout="window.setTimeout('moveit()',20)" border=0></a></div>