Recaptcha has suddenly started stealing the focus when it's loaded on a page, which causes the page to scroll down to the form (very annoying). This appears to be a new bug?
See example: http://www.gullixson.com/Contact-Us
Apparently, the main Google Library that loads reCaptcha http://www.google.com/recaptcha/api/challenge?k=UNIQUEAPIKEY&lang=en calls for a http://www.google.com/recaptcha/api/js/recaptcha_canary.js
In there, the init() function appears to fire a reload() function, which is causing the Recaptcha.focus_response_field() function to load.
There appears to be nothing we can do... until they fix it?
Does anyone know how to report this bug to Google? Or a way to work around this?
The easiest workaround is just to redefine Recaptcha.focus_response_field
after the recaptcha JS has loaded.
// Load recaptcha JS
// ...
Recaptcha.focus_response_field = function(){return false;};
This makes the focus operation essentially turn into a non-op.
Edit: Tested and working on Chrome, Firefox and IE9
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With