Created
June 5, 2015 02:40
-
-
Save slick2/59e3b4a35313432fbcd4 to your computer and use it in GitHub Desktop.
refreshCaptcha
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function refreshCaptcha() | |
{ | |
var img = document.images['captchaimg']; | |
/** this is the wrong code, since the img src of captcha is changed this should changed also **/ | |
img.src = img.src.substring(0, img.src.lastIndexOf("?")) + "?rand=" + Math.random() * 1000; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment