Pure JavaScript/jQuery/HTML captcha

后端 未结 8 1615
离开以前
离开以前 2021-01-14 04:54

can somebody sent me a link, or to provide me an example with pure Javascript/jQuery captcha. Because I can see a lots of examples with PHP/C# ... back end. But I need just

8条回答
  •  佛祖请我去吃肉
    2021-01-14 05:08

    Hi AlexC you can validate your google recaptcha at client side also 100% work for me to verify your google recaptcha just see below code
    This code at the html body:

     

    This code put at head section on call get_action(this) method form button:

    function get_action(form) {
    
        var v = grecaptcha.getResponse();
        if(v.length == 0)
        {
            document.getElementById('captcha').innerHTML="You can't leave Captcha Code empty";
            return false;
        }
        if(v.length != 0)
        {
            document.getElementById('captcha').innerHTML="Captcha completed";
            return true; 
        }
    }
    

提交回复
热议问题