I would like to ask if anyone has a simple solution that will allow me to reload/refresh an iframe but without the flickering/flash when the page reloads, it that possible ? Maybe to animate a blur-out and then a blur-in instead of the flickering/flash? I don't know any input would be helpful,
Thanks.
Here is how I reload the iframe now
document.getElementById("FrameID").contentDocument.location.reload(true);
Thanks for the help.
function refresh() { var iframe = document. getElementById('iframe'); iframe. reload(true); } setTimeout('refresh()', 3000); Note, this will try to refresh the page every 3 seconds.
To refresh an iframe using JavaScript, we call iframe. contentWindow. location. reload(); .
Easiest approach:
Swapping
To actually swap them, just have them next to each other and toggle the display: none / block
css of each one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With