1. Disable the webbrowser pop-up window
I found that silent does not work. I don't know if it is incorrect. Alert will still pop up.
Found a paragraphCode, (Not tested)
Lpdispatch = m_javaser.getdocument (); <br/> ihtmldocument2 * pdocument; <br/> lpdispatch-> QueryInterface (iid_ihtmldocument2, (void **) & pdocument ); <br/> lpdispatch-> release (); </P> <p> If (pdocument! = NULL) <br/>{< br/> ccomqiptr <ihtmlwindow2> phtmlwnd; <br/> pdocument-> get_parentwindow (& phtmlwnd ); </P> <p> If (phtmlwnd! = NULL) <br/>{< br/> ccombstr bstrjs = l "function showmodaldialog () {return ;}"; <br/> ccombstr bstrlan = sysallocstring (bstrjs ); <br/> variant varret; <br/> phtmlwnd-> execScript (bstrjs, bstrlan, & varret); </P> <p> bstrjs = l "function alert () {return;} "; <br/> bstrlan = sysallocstring (bstrjs); <br/> phtmlwnd-> execScript (bstrjs, bstrlan, & varret ); </P> <p> bstrjs = l "function confirm () {return ;}"; <br/> bstrlan = sysallocstring (bstrjs ); <br/> phtmlwnd-> execScript (bstrjs, bstrlan, & varret); <br/>}< br/>
2. Disable webbrowser from reading the cache
UseVariant flag; <br/> flag. vt = vt_i4; <br/> flag. ival = navnohistory + navnoreadfromcache + navnowritetocache; <br/> m_assumer.navigate (strtourl, & flag, null );It does not work either.
On the forum, you can see a tip provided by someone who adds a string like & XXXX at the end of the connection, without affecting access.