How to reload an iframe
This is a personal approach on how to reload an iframe, thought because the other available solutions didn’t always work and needed specific code for specific browsers.
// Used as reference to the iframe node. var iframe = window.document.getElementById("iframe"); // Used to reload the iframe. iframe.parentNode.replaceChild(iframe.cloneNode(), iframe);