怎么根据window窗口的名称,得到窗口这个对象? window.open('open.asp','openwin');//第二个参数写上 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 还是用open,如果打开了,就刷新,如果没有打开,就从新打开。 不好意思,刚才没有些清楚,其实A里面打开的C,和B里面打开的C,窗口的属性都不一样的,大小不一样,scrollbar一个有,一个没有,等等。你上面的办法的话,第二次设置的属性,不会有用的,假如子窗口已经打开的话。同时,C还因为,不仅仅是作为子窗口打开,还可以在父窗口中打开,所以,我也不能再C上面控制它的大小。 changpei(张枕书) 和和,我也想知道,她有没有打开过。 迷糊.a打开c,b打开c....等待高手呀.... inelm(木野狐)已经回答了。内容如下,谢谢。inelm(木野狐) ( ) 信誉:133 2004-09-21 23:51:00 得分: 0 test1.htm--------------------------------------1<input type="button" value="open" onclick="test()"><script>var winFlag = Math.random();function test(){ var w = window.open('http://www.weiqi.net', 'haha', "height=100,width=100,status=yes,toolbar=no,menubar=no,location=no"); if (w.opener.winFlag != self.winFlag) { w.close(); window.open('http://www.weiqi.net', 'haha', "height=100,width=100,status=yes,toolbar=no,menubar=no,location=no"); }}</script>test2.htm--------------------------------2<br><input type="button" value="open" onclick="test()"><script>var winFlag = Math.random();function test(){ var w = window.open('http://www.weiqi.net', 'haha', "height=300,width=300,status=yes,toolbar=no,menubar=no,location=no"); if (w.opener.winFlag != self.winFlag) { w.close(); window.open('http://www.weiqi.net', 'haha', "height=300,width=300,status=yes,toolbar=no,menubar=no,location=no"); }}</script> 怎么把javascript的值传递到iframe标签的src里面去?在线等 js 触发事件 100求助,如何实现子页面的跨域之间调用的问题 JS模拟弹窗,IE下出现错误。 如何实现动态表格对象的创建? JQuery冲突,直接用JQuery("#???")也报错 如何根据弹出的窗口名来关闭一个子窗口?(在线) 关于下来菜单的问题 问个基础问题.(MB转字节) 如何判断鼠标位置是否在一个<DIV>的范围内? 能不能获得当前事件的下一个原素? 请教一个上传文件的问题,请指教。
和和,我也想知道,她有没有打开过。
a打开c,b打开c....
等待高手呀....
inelm(木野狐) ( ) 信誉:133 2004-09-21 23:51:00 得分: 0
test1.htm
--------------------------------------1
<input type="button" value="open" onclick="test()"><script>
var winFlag = Math.random();function test()
{
var w = window.open('http://www.weiqi.net', 'haha', "height=100,width=100,status=yes,toolbar=no,menubar=no,location=no");
if (w.opener.winFlag != self.winFlag)
{
w.close();
window.open('http://www.weiqi.net', 'haha', "height=100,width=100,status=yes,toolbar=no,menubar=no,location=no");
}
}
</script>
test2.htm
--------------------------------2
<br>
<input type="button" value="open" onclick="test()"><script>
var winFlag = Math.random();function test()
{
var w = window.open('http://www.weiqi.net', 'haha', "height=300,width=300,status=yes,toolbar=no,menubar=no,location=no");
if (w.opener.winFlag != self.winFlag)
{
w.close();
window.open('http://www.weiqi.net', 'haha', "height=300,width=300,status=yes,toolbar=no,menubar=no,location=no");
}
}
</script>