Coding & Programming > JavaScript Forum

Captcha Implementation with Javascript


Hi, I am a developer. I have been searching for best suited web development forums which provide helpful information on web development, so that I can get help from their active members for learning the Captcha Implementation with Javascript which is used to protect the website from the attack and accessing the website by machines. I have searched alot of forums but didn't get the answer. I hope any tech developer can help me in resolving the issue or provide me links of such more forums.

That code fundamentally says that your shape shouldn't be presented regardless of what code is entered. On the off chance that should read else if (code.value !== some_code) where some_code is a string variable with the right code.

ValidCaptcha() Method compare's the entered code in the text box aganist the drawn or displayed code in the captcha box. RemoveSpaces(string) Method repoves the occurance of any blank spaces within the created as well as entered code. After all the both the strings are compared by removing any blank spaces.

<input type="button" id="btnrefresh" value="Refresh" onclick="DrawCaptcha();" /> DrawCaptcha() Method is invoked to draw an captcha on the screen. On Click of refresh button we can generate/draw the new captcha images.


[0] Message Index

Go to full version