I"m trying to make a refresh captcha thing but it doens't seem to be working.
It will change the src attribute, but the image will not regenerate.Code:function refreshCaptcha() { var imgPath = serverDomain + "verificationimage.png"; var img = document.getElementById('captcha'); img.src = imgPath; var inputField = document.getElementById('captchaInput'); if(inputField != null && inputField.value != '') { inputField.value = ''; inputField.focus(); } }
Yes, serverDomain variable is declared.


LinkBack URL
About LinkBacks



Reply With Quote
