467,161 Members | 1,003 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,161 developers. It's quick & easy.

preventing popups from axWebbrowser

hi,

i am using axwebbrowser in an application. now, if the webpage
has a javascript with window.open(), a pop up window opens.
i want to catch the event just before axwebbrowser spawns a new
window. i want the popup to open in the same window, not in any
new window.

this is the somewhat the same functionality as done by the site
popup blocker in google's tool bar.
anand
--
Nov 20 '05 #1
  • viewed: 1515
Share:
3 Replies
Hi Anand,

I use for that the NewWindow2 method and an extra webbrowser in which I open
it an kill it directly, however I never succeeded in catching them all.

I hope this helps?

Cor
Nov 20 '05 #2
* an*******@rediffmail.com (anand) scripsit:
i am using axwebbrowser in an application. now, if the webpage
has a javascript with window.open(), a pop up window opens.
i want to catch the event just before axwebbrowser spawns a new
window. i want the popup to open in the same window, not in any
new window.


185538: HOWTO: Cause Navigation to Occur in Same WebBrowser Window
<URL:http://support.microsoft.com/?id=185538>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
hi***************@gmx.at (Herfried K. Wagner [MVP]) wrote
185538: HOWTO: Cause Navigation to Occur in Same WebBrowser Window
<URL:http://support.microsoft.com/?id=185538>

hi,

this worked, and i am able catch those new windows. but on doing
'processed=true', i get a 'Internet Explorer Script
error', saying that 'object is null or not an object'.

second thing is that on reloading the original page for
the second time, the popups are appearing and i am not able
to do anything about it!

anand
--
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.