test1.html
<html>
<title>test</title>
<script language=javascript >
function clic(){
window.showModalDialog("test2.html", null, "dialogWidth=450px;dialogHeight=300px;center:1;scroll:0;help:0; status:0");
}
</script>
<body>
<a href="javascript:clic()" >打开子窗子链接</a></body>
</html>test2.html
<html>
<title>test</title>
<script language=javascript >
function clic(){
window.showModalDialog("tttest2.html", null, "dialogWidth=450px;dialogHeight=300px;center:1;scroll:0;help:0; status:0");
}
</script>
<body>
<P>子网页显示</p></body>
</html>打开test1.html后点击链接(ie打开),会出现一个子网页,子网页未关闭时test1.html不能获得焦点
请问如何获得test2.html的句柄?
用SHDocVw.InternetExplorer ie in shellWindows遍历窗口时因为不是顶级窗口也无法得到test2.html的句柄。