5/3/2023 0 Comments Capcha generation html![]() So theCaptcha will become a random string.Īlso, by using DOM, I use element captcha from index.html. Lastly, I combined array of captcha into theCaptcha. The function will generate some random value and will saved into captcha as an array. After that, I build a function named createCaptcha. app.jsįrom the code above, we can know that I initialize new Array named captcha. So, we need to build a function that can make some random string. Captcha is consist of some string and the value is random. Let skip the style.css and app.js right now, and go to the next step. index.htmlĬode above, is the main program of the index.html, the output of the program is like this Here we need to initialize the program that consist index.html, style.css, and app.js. ![]() In this article, I want to build simple captcha verification method using JavaScript.Īs we know, captcha is work in website, so a bit understanding of DOM will really helpful for reading this article. Captcha is a type of challenge-response test to check the user is human or robot. ![]() Do you still remember, a few years ago, verification method in some site using captcha. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |