Webbrowser - What fires before each page is downloaded?

J

Jim Hubbard

According to Visual Studio 2003 Help files "In Internet Explorer 6 or
later, the BeforeNavigate2 event fires only before the first navigation
made in code. It does not fire when a user clicks a link on a Web page."

If I want to intercept each webpage before it is rendered in the webbrowser
control (to add or remove code), where would I do so in the webbrowser
control?

Any suggestions?
 
C

C-Services Holland b.v.

Jim said:
According to Visual Studio 2003 Help files "In Internet Explorer 6 or
later, the BeforeNavigate2 event fires only before the first navigation
made in code. It does not fire when a user clicks a link on a Web page."

If I want to intercept each webpage before it is rendered in the webbrowser
control (to add or remove code), where would I do so in the webbrowser
control?

Any suggestions?
This makes me wonder what you are trying to achieve. Injecting HTML code
into a requested page? I.E. Adding banners/spyware?

Maybe I'm too paranoid :)
 
C

Cor Ligthert

Jim,

Is this not a question of simple debugging.

There are much events however not that much.
Even without debugging does setting simple a messagebox in every event tells
you what you want to know.

Just my thought,

Cor
 
J

Jim Hubbard

You are too paranoid. I want to REMOVE banners, spyware, authorized ActiveX
controls, etc. .

Microsoft's 4 security zones are not flexible enough. You have no granular
security control over each URL you visit.

I want to intercept the HTML before the webbrowser executes (displays) it
and remove potential problems or unwanted objects for the user.
 

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

Top