0

I would like to add CAPTCHA source to the div id captchaImage. But it is not working in IE and Firefox, but it is work in Chrome. Please help me. Difficulty reading the words? Load another image.

function getNewImage(){document.LogonForm.captcha.value = '';var url = '${startpage.captchaURL}';document.captchaImage.src = url;}

Thanks

4

1 回答 1

0

就像@Felix Kling 在评论中写的那样,使用document.getElementById('captchaImage')是因为 Firefox 不会将元素 ID 公开为文档对象的属性。

于 2013-01-30T11:25:11.190 回答