preventing popups from axWebbrowser

  • Thread starter Thread starter anand
  • Start date Start date
A

anand

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
--
 
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
 
* (e-mail address removed) (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>
 
(e-mail address removed) (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
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top