Reputation: 21
I have tried adding meta tag to the header :
But it didn't work.
I tried this option, still didn't work infact there is no google.com present inside compatible view.
Could anyone help me out?
<!DOCTYPE html> <html lang="en"> <head> <title>How to Integrate Google “No CAPTCHA reCAPTCHA” on Your Website</title> <script src='google.com/recaptcha/api.js'></script> </head> <body> <form action="" method="post"> <label for="name">Name:</label> <input name="name" required><br /> <label for="email">Email:</label> <input name="email" type="email" required><br /> <div class="g-recaptcha" data-sitekey="###"></div> <input type="submit" value="Submit" /> </form>
Upvotes: 0
Views: 488
Reputation: 21
Actually it was loading loading first time in IE. So, I tried with making url different everytime by appending current datetime.
"https://www.google.com/recaptcha/api.js?render=" + EncodeUrl(SiteKey) + "&time="+CurrTime()
It started working.
Upvotes: 0
Reputation: 12991
You should include the necessary JavaScript resource like this:
<script src='https://www.google.com/recaptcha/api.js'></script>
Besides, set the right site key in the data-sitekey
attribute.
The result is like this in IE:
If it still doesn't work in IE 11, you could use F12 dev tools to check if there's any error in console.
Upvotes: 1