The page you pointed out shows how to display reCAPTCHA using only JavaScript.
There is no method for checking reCAPTCHA using only JavaScript for two reasons:
To verify reCAPTCHA, you must use your private key, as described in Verifying user response without plugins . Doing this with client scripts ultimately provides a private key. reCAPCTHA relies on its secrecy.
Even if that were the case, it would be useless. Any way to prevent form submission using JavaScript can be easily undone (e.g., User Script ) and therefore offers no protection at all.
To test reCPATCHA, you can use either the method described in the link in 1. or one of your plugins . In any case, you need some kind of server-side scripting (PHP, ASP, Perl, etc.).
source share