【发布时间】:2010-03-22 15:53:45
【问题描述】:
我在理解打开新浏览器窗口后如何引用它们时遇到了一些问题。例如,如果我从一个主窗口(index.html)创建了 3 个新窗口:
var one = window.open( 'one.html', 'one',"top=10,left=10,width=100,height=100,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no");
var two = window.open( 'two.html', 'two',"top=100,left=10,width=100,height=100,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no");
var three = window.open( 'three.html', 'three',"top=200,left=10,width=100,height=100,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no");
two.focus();
如果浏览器“二”当前处于焦点位置,我如何以编程方式关注(或仅引用)浏览器“三”?
【问题讨论】:
标签: javascript browser window