handleman
9/3/2014 - 1:38 PM

How to reload iFrame using jQuery

How to reload iFrame using jQuery

//reload 1 iframe
$('#iframe')[0].contentWindow.location.reload(true);
 
//reload all iFrames
$('iframe').each(function() {
  this.contentWindow.location.reload(true);
});

//Another way to reload all iFrames
$('iframe').attr('src', $('iframe').attr('src'));