my code is: <img id="captcha_iamge" src="Captcha.php" alt="" /> <a href="#" onclick="document.getElementById('captcha_iamge').src = 'Captcha.php'" >Reload Image</a> HTML: the "reload image" will refresh the captcha image in IE but not FF. if firefox the link does nothing. any ideas? thanks in advance
May be caching problem? Try this: <img id="captcha_iamge" src="Captcha.php" alt="" /> <a href="#" onclick="document.getElementById('captcha_iamge').src = 'Captcha.php?'+Math.random();" >Reload Image1</a> or <div onclick="document.getElementById('captcha_iamge').src = 'Captcha.php?'+Math.random();" >Reload Image2</div> HTML: Works fine on IE, FF3.