何のクラス使ってるかぐらいは書け
System.Windows.Forms.WebBrowserならScriptErrorSuppressed
これでダメならIDocHostUIHandler辺り実装することになるかねぇ