
Untitled
By: a guest on
May 13th, 2012 | syntax:
None | size: 0.47 KB | hits: 16 | expires: Never
Is there a way to track Internet Explorer Error messages from the WebBrowser Control?
m_htmlDoc = (IHTMLDocument2)axWebBrowser1.Document;
HTMLWindowEvents2_Event onErrorEvent;
onErrorEvent = (HTMLWindowEvents2_Event)m_htmlDoc.parentWindow;
onErrorEvent.onerror += new
HTMLWindowEvents2_onerrorEventHandler(myHTMLWindowEvents2_onerror);
window.onerror=function(msg, url, linenumber){
alert('Error message: '+msg+'nURL: '+url+'nLine Number: '+linenumber)
return true
}