Amit,
If the browser you are opening is internet explorer, then you should
open it through automation. Then, you need to attach to the NewWindow event
for the webbrowser. In that event, you can cancel the creation of the new
window if it does not meet your criteria.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"sonu" <kr*******@yahoo.com> wrote in message
news:11**********************@z34g2000cwc.googlegr oups.com...
I am developing a window application, where i open a web page on a
click event.
but problem is all pop ups also opened when i open that page.
is there any way to block pop ups without adjusting browser settings.
can we block pop ups through code.
Amit