<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>window.open测试</TITLE>
<script>
var popo1=window.open("about:我是第一个POPO!");
var popo2=window.open("about:我是第二个POPO!");
var popo3=window.open("about:我是第三个POPO!");
//当3个子窗口全部生成后,使主窗口获的焦点
self.focus();
function callPOPO(winName){
if(!winName||winName.closed) {//当生成的子窗口被关闭后,再调用callPOP函数时的提示信息
alert("窗口"+ winName +"可能已经被关闭了");
}else{
//使点击按钮对应的子窗口获的焦点
winName.focus();
}
}
</script>
</HEAD>
<BODY>
<button onclick="callPOPO(popo1)">聚焦POPO1</button>
<button onclick="callPOPO(popo2)">聚焦POPO2</button>
<button onclick="callPOPO(popo3)">聚焦POPO3</button>
</BODY>
</HTML>
详细解决方案
window.open容易使用
热度:124 发布时间:2012-10-25 10:58:57.0
相关解决方案
- javascript window open在ie中设立不起作用,求解决
- window.open传参数在页面获取地址少了参数,该如何解决
- 【EXTJS】iframe里嵌套ext.window,怎样使ext.window弹出到iframe外,该怎么解决
- windows系统下too many open files寻求解决方法
- j2me用Connector.open(url)打开一个联接 url中含有分号(;)的时候,程序直接退出了,该如何解决
- window mobile下 midlet 怎么调用ie mobile
- window xp 装配nutch1.6
- open swing 如何使用
- var store=new ActiveXObject("CAPICOM.Store" store.Open(二, "My" 0 || 128)
- Open Flash Chart柱状图可不可以控制柱子的宽度,该如何解决
- 关于window.open()和window.close()的有关问题
- window.location.href不跳转有关问题
- window.showModalDialog弹出窗体有关问题
- IIS 调用Microsoft.Office.Interop.Word.Documents.Open 回到为null
- 用何用WINDOW.OPEN 在A.ASPX页面弹出一B.ASPX窗口,并取B.ASPX窗口值,赋给A.ASPX下的TEXTBOX控件
- window.close怎么关闭不提示?IE8上
- window.open怎么弹出一个新的窗体啊
- IE6中弹出层报“Internet Explorer cannot open the Internet site “。如何避免
- window.open刷新有关问题。大家帮忙看下啊小弟我已经搞了三天了。没弄明白。这个是什么原因。
- window.opener的一个疑问?解决办法
- window.showmodaldialog() 产生的有关问题
- 怎么实现a页面用window.open()打开b页面,取得b页面的值后用javascript传给A页面表格的cell里?
- a.aspx主页面,b.aspx是用window.open()打开的,我怎么判断子页面只打开一次,并且在已经打开的页面传值,给各方法,多谢
- window.open 怎么隐藏状态栏
- window.showModalDialog 相关有关问题
- treeview 中window。open()有关问题
- OnClick=window.open("/index.aspx")出错?解决思路
- window.returnValue()返回值为undefined?解决方法
- 请教:window.open()这样语句可以设置窗口的背景色吗
- window.opener的意思是?解决思路