<img id="siimage" name="siimage" alt="Security Image" src="http://localhost/dev/template_eng/common/plugins/simg/simg.php" /><br />
<input name="securityImageValue" type="text" size="15" />
<a tabindex="-1" style="border-style: none" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = 'http://localhost/dev/template_eng/common/plugins/simg/simg.php?sid=' + Math.random(); return false">
<img src='http://localhost/dev/template_eng/common/images/icons/refresh.gif' alt="Reload Image" border="0" onclick="this.blur()" align="bottom" />
</a>
There is yet another problem with Internet Explorer not following standards 🙂
for JS onclick mozella /wc3 state that it will not reload an event if the previous event is exactly the same so no state change should occur adding the ?sid=Math.random() to the end gives a new event different than the previous event loaded into src element.
However, microsoft will just go in an infinite loop and does not check to see if there is any differences...lol