WebBrowser and Popup window

  • Thread starter Thread starter Bhavin Parekh
  • Start date Start date
B

Bhavin Parekh

Hi there

I'm building a windows form using C# and .net Framework 2.0.
I have put webBrowser control on my form.

When user clicks inside webBrowser, it opens up popup window on new separate
IE browser instance which is not part of windows application.

Is there anyway, popup can be opened in same window under same browser
control??
Or
Can we open popup window if i put another webbrowser control so popup window
open inside that control.

Can anyone help on this??
Any help would be appreciated....
Thanks
 
Where is the content in the browser control coming from ?
If you are not creating it, then the author of the page may specify that
links open in a new window (in this case IE). Some of these new windows may
be opened by script, in addition to those created from "regular" links. It
would be difficult to prevent this behavior for all cases.

Tim
 
Hi,
By,

window.open('NewPage.aspx','_self','fullscreen');

You can open the popup in the same browser.

Hope this will help you !

Regards,
Mansi Shah
 
Hi
This is external website and we dont have control on website.
I automated one link to click which opens up popup window and i want popup
window to appear within my windows application form.
Thanks
 
Back
Top