472,358 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,358 software developers and data experts.

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
3 1640
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Martin Ho | last post by:
Hey Everyone, I really hope there is someone who can figure out this problem. Honestly, I spent 3 days now trying to find the solution, but nothing works. I'll try to explain the problem...
3
by: PSERVE | last post by:
Is the a way of preventing popups from other sites while your page is loading? -- Regards Nik http://www.itconsultancy.org
0
by: Matthias Kwiedor | last post by:
I have a aplication which hosts an axWebbrowser. This activex component needs about 10 to 15 mb of memory. Because i have a option to move the aplication to tray icon and do some timer work i...
6
by: Dave Booker | last post by:
It appears that I cannot correctly install the AxWebBrowser in VS2005. I can instantiate an "AxWebBrowser browser" and refer to its members, properties, and methods. I'm having trouble with the...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.