Firefox has no problems with identifiers - in 99% of cases this is due to the fact that you either do not have an identifier or the identifier is duplicated.
identifiers must be unique throughout the document.
To answer your question:
<iframe id="frame1"></iframe> <iframe id="frame2"></iframe> <input type="button" onclick="refreshFrames()" value="refresh frames" /> <script type="text/javascript"> function refreshFrames(){ frame1 = document.getElementById('frame1'); frame2 = document.getElementById('frame2'); if(frame1.contentDocument){ frame1.contentDocument.location.reload(true); frame2.contentDocument.location.reload(true); } else { frame1.contentWindow.location.reload(true); frame2.contentWindow.location.reload(true); } } </script>
(For IE, you may need to use contentWindow instead of contentDocument depending on the version of IE you are trying to support)
source share