window.close closes webbrowser but not the form itself 
Author Message
 window.close closes webbrowser but not the form itself

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



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. window.close closes Webbrowser but not the form itself

2. window.close closes Webbrowser but not the form itself

3. window.close closes Webbrowser but not the form itself

4. window.close closes Webbrowser but not the form itself

5. window.open closes webbrowser but not the form itself (Sorry for duel posting)

6. window.open closes webbrowser but not the form itself (Sorry for duel posting)

7. window.open closes webbrowser but not the form itself (Sorry for duel posting)

8. Form Close Button Does Not Close the Form

9. Closing Form when WebBrowser control close

10. Form does not close from the UpperRight X Close button

11. Do not close form on clicking close button in Visual Basic

12. How to get a window to close itself...?

 

 
Powered by phpBB® Forum Software