简体   繁体   中英

.NET Win Form App - Is it possible to catch a web address from a pop-up?

I have a Windows Form Application that has a tabControl with a webbrowser on a tab an on the other some textboxes. I need to access a website from the webbrowser. The problem is on that website i have click on a link that opens a pop-up. I was wondering if there is any way to avoid the popup and load the page in the webbrowser directly. If there's a way to catch the popup address, close the popup and load the page in the application's browser. The real problem would be catching the popup address if that's possible. Thank you very much.

I do not think that is possible because the popup will occur within the web browser instance. It is pretty much outside of your control at that point.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM