jQuery Refresh / reload an iframe

There are cases where it's preferable to reload an individual iframe, instead of the entire page.

If the page itself is reloaded, the iframe loses it's location.
$('iframe#myiframe').attr('src', $('.content').contents()[0].URL);
Posted by
Snippet Viewed 2324 times.

Share your jQuery code snippets:

  • Get some recognition & link back to your site.


Submit | Browse

Most Recent jquery snippets

Most Viewed