Google reCaptcha IE8

半世苍凉 提交于 2020-01-11 09:09:14

问题


Is Google reCaptcha v2 supported in Internet Explorer 8?

If not is there any suitable Internet Explorer 8 compatible captchas?

I am seeing a issue where the reCaptcha code is trying to use the method getContext.

Object doesn't support property or method 'getContext'

回答1:


The code I ended up using to support IE8 was the following.

<!--[if !IE 8]><!--><script src="https://www.google.com/recaptcha/api.js"></script><!--<![endif]-->
<!--[if IE 8]><script src="https://www.google.com/recaptcha/api.js?fallback=true"></script><![endif]-->

The difference being fallback=true is set which reverts back to V1 of recaptcha.



来源:https://stackoverflow.com/questions/30808572/google-recaptcha-ie8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!