启动IE窗口并使用该实例启动子窗口 [英] Launching an IE window and using that instance to launch child windows

查看:102
本文介绍了启动IE窗口并使用该实例启动子窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我试图找出一种方法,在该方法中我将首先启动IE窗口,并显示登录页面".用户将输入他的详细信息并登录.

我想使用相同的IE实例启动具有属于同一站点的不同URL的窗口.

我不确定如何实现这一目标.请求帮助.

谢谢
-Bhaskar

Hi,

I am trying to figure out a way where I will first launch an IE window, with say a Log on page. The user will enter his details and login.

I want to use the same IE instance to launch windows with different URL belonging to the same site.

I am not sure how to achieve this. Requesting Help.

Thank You,
-Bhaskar

推荐答案


  1. 您可以使用window.open函数通过javascript实现此功能.

    请使用Google查找此功能的参考.当您通过javascript打开IE窗口时,将返回参考窗口对象.如果将其保留在某种管理结构中,则可以使用这些窗口句柄"来完成很多巧妙的工作.打开子"窗口的窗口中的javascript代码对此子项具有完全控制权.


  1. You can achieve this via javascript by using the window.open function.

    Please use google to find a reference for this function. When you open an IE window via javascript a reference window object will be returned. If you keep that in some managing structure you can do a lot of neat stuff with these "window handles". The javascript code in the window that opened the "child" window has full control over this child.


<a href="..\Page.aspx" target="windowName">Text for link<a>


您可以通过在定位标记的target属性中使用相同的名称来控制将在哪个窗口中显示链接.


You can control which window a link will be displayed in by using the same name in the target attribute of the anchor tag.



希望对您有所帮助!如果您仍有疑问,请发表评论.

干杯!



Hope that helps you! If you still have doubts leave a comment.

Cheers!


这篇关于启动IE窗口并使用该实例启动子窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆