I need to load a GIF to display while the iframe is loading.
Here is what I came up with:
<div id="m-load" style="position:relative;top:45%;left:45%;"> <img src="images/loader.gif"/></div> <iframe src="http://myserver.com/myfile.html" id="m-iframe"></iframe>
And in the iframe source file I entered: (myfile.html)
<head> <script> top.document.getElementById('m-load').style.display ="none"; </script> </head>
But this will not work in Firefox (permission is prohibited).
Any other way to achieve this?
source share