PDA

View Full Version : Blocking adverts(TWebBrowser)?



Cazax
01-28-2009, 05:06 PM
How would I block or remove an advert using TWebBroswer? I tried with FindComponent and FindChildControl but I was getting errors. Help.

R0b0t1
01-30-2009, 05:14 AM
You need to look at the src arg, like:



<[...] src="my.ad.site.com" [...] >


I haven't checked, but you need to look through every object and use a regexpr to match the src part.