javascript - vba excel internet explorer disable warning https message -


when loading website , following security warning :

do want view webpage content delivered securely.

this popup cause code go error , there way disable vba ?

thanks.

here code

    sub start()  dim ie new internetexplorer dim doc htmldocument   ie.visible = true  ie.navigate ("https://mywebsite.com") ie.fullscreen = true doevents loop until ie.readystate = readystate_complete set doc = ie.document    doc.getelementbyid("navmenu2").click 

the reason warning you’re on ssl-secured (https protocol) page attempting load non-ssl (http protocol) content.

the best ways fix either:

  1. visit website http instead of https - ie.navigate ("http://mywebsite.com")
  2. fix security issues in website (do not load unsecure content when visiting https)

if want fix testing purposes, can change settings in test browser:

  1. go tools -> internet options -> security
  2. select "security" tab -> click "custom level" button
  3. in "miscellaneous" section change “display mixed content” enable.

Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -