Today I had a requirement where it was desired that on click of a button an iframe should get re-loaded and that button was within the source of that iframe.
I tried everything else on google, but nothing worked.
Finally I found this and it worked
Here is the complete code…
var d = new Date();
// set the HTML content of the element with id=time
// define what happens on click of the element with id="download"
// Simply re-load myself 🙂