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:
- visit website http instead of https -
ie.navigate ("http://mywebsite.com")
- fix security issues in website (do not load unsecure content when visiting https)
if want fix testing purposes, can change settings in test browser:
- go tools -> internet options -> security
- select "security" tab -> click "custom level" button
- in "miscellaneous" section change “display mixed content” enable.
Comments
Post a Comment