
window.open closes webbrowser but not the form itself (Sorry for duel posting)
Sorry for duel posting...
Hello,
If a WebBrowser control makes a new window by registering a new
WebBrowser and form like,
Set frmPop = New frmPopUp
frmWB.WebBrowser1.RegisterAsBrowser = True
Set ppDisp = frmPop.WebBrowser1.object
frmPop.Visible = True
and the new form contains a javascript popup window, all is fine.
However, if this popup window has a close button with a window.close,
the html document (WebBrowser control) will close, but the frmPop stays
open as a blank form. Is there any to catch this window.close and close
the frmPop when the WebBrowser closes? I think I can capture the
window.close using html object library but I don't know what event to
put it in. Thank you for your help.
Opie
Sent via Deja.com http://www.*-*-*.com/
Before you buy.