Using the webbrowswer control to cruise a site. Sometimes errors occur which involve a javascript popup box. I would like to do a couple of things when this happens.
- Know when a javascript alert popups up.
I have used the LostFocus event with some success but anytime it losses focus that code runs which is annoying.
- I would like to know the exact text that the alert box says.
I am not sure where to find the alert box object or cast it for use in C#. I looked all over the internet and couldn't find it.
Any one any clue?