Solved

WebBrowser: Intercept Javascript Alert

Posted on 2006-07-11
2
1,932 Views
Last Modified: 2010-05-18
I have a webbrowser control in a vb.Net 2005 application. When I navigate to a site that gives me a javascript alert, I want to intercept it and display it differently in the application. Can anyone tell me how to do this? Thanks.
0
Comment
Question by:rbichon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 10

Accepted Solution

by:
prakash_prk earned 500 total points
ID: 17081343
thats possible.

You need to implement IDocHostShowUI and capture the Javascript alert and
confirm message boxes in the ShowMessage method

try the link.

http://groups.google.co.in/group/microsoft.public.inetsdk.programming.webbrowser_ctl/browse_frm/thread/c2fa459bc697e864/eaebf644369c2942?lnk=st&q=IDocHostShowUI+%2B+C%23&rnum=2&hl=en#eaebf644369c2942

regards
prakash
0
 
LVL 10

Expert Comment

by:prakash_prk
ID: 17096926
thanks  rbichon
0

Featured Post

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question