Disable webbrowser in the pop-up window to disable webbrowser from reading the cache

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.