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的句柄。
<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的句柄。
解决方案 »
- asp.net 行转列 动态列 怎么绑定GRIDVIEW
- c#中dockpanel怎样使MDI子窗体平铺层叠
- TreeView树形目录的问题,,,,,,?
- 如何给WORD或其他软件添加“大小写转换”工具?
- c#图片处理,透明化,保存,急,各位帮忙!
- FileDialog.Filter的问题
- winform 程序里面的图片通过xml加载快点 还是放上去加载快点啊
- TreeView中如何实现父结点的checkBox的状态变化,而实现子结点的全选或全部取消
- 如能解决这个问题,立马给200分!
- 如何通过C#GetUserDefaultUILangugae获取系统UI显示语言异常?
- 求大神们进来看看,关于扫条码到aspx页面文本框里的问题,在线等待中
- 求一个监控键盘鼠标动作达到用户超时自动退出登录的效果
我也遇到同样的问题,不知道你有没有解决啊,我是想获取页面的内容