TWebBrowser: popup - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

TWebBrowser: popup

scramscram Posts: 1Member
I am programming a webbrowser for own usage. How can I filter the popup-windows and kill them? Than you in advance.

Comments

  • zibadianzibadian Posts: 6,349Member
    : I am programming a webbrowser for own usage. How can I filter the popup-windows and kill them? Than you in advance.
    :
    Preload the page into a TNMHTTP. Then check if you can find any HTML or javascript links that create new windows, and if so remove them. Then copy the code to the IHTMLDocument2(WebBrowser1.Document).Body.OuterHTML. The name WebBrowser1 should match the anem of your TWebBrowser control. This will require some more coding to include frames, but its a start.
Sign In or Register to comment.