Re: How to sense popup closings from the parent window? by Csaba
Csaba
Sat Jul 15 09:22:10 CDT 2006
caglaror wrote:
> When the popup created by
> Set objIE = CreateObject("InternetExplorer.Application")
> code.
> So can we
> 1) reach the objIE.document elements
Um,
objIE.document.body
objIE.document.getElementById('myId')
> 2) focus to new created object if it is blur.
You can use CreateObject("WScript.Shell").AppActivate (...)
> 3) navigate the popup to secure (htpps) sites
objIE.Navigate2 "site to go to"
As to your first question in this thread about detecting the close of a
popup created via CreateObject("InternetExplorer.Application"), I
suggest that you create it, instead, as follows, so that you can use:
Set objIE =
WScript.CreateObject("InternetExplorer.Application","prefix") and then
add
Sub prefix_OnQuit
... Do stuff here ...
End Sub
Csaba Gabor from New York