WebBrowser and Popup window

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
 
T

Tim Williams

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
 
M

Mansi Shah

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
 
B

Bhavin Parekh

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top