>>xx=Newobject('_webform',Home()+'\gallery\_WebView') >>xx.OleWebBrowser.Navigate2('http:\\www.manex.com') >>xx.Show() >>>>
>*** ActiveX Control Event *** >LPARAMETERS pdisp, url >=m.this.DisableScriptErrors() >>
> >&& http://social.msdn.microsoft.com/Forums/en-US/addb47f6-ce7b-414b-8d2b-0840f945e211/disable-javascript-popup-error-in-webbrowser?forum=netfxjscript >&& http://stackoverflow.com/questions/153748/how-to-inject-javascript-in-webbrowser-control > >local scriptText, jselement >scriptText = 'window.onerror=function(){return true;}' > >with this.document > > jselement = .createelement('Script') > > jselement.type='text/javascript' > jselement.text = m.scriptText > && jselement.id='vfpJsScript' && optional > > .getelementsbytagname("head").item(0).appendchild(m.jselement) >endwith >