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 2185 times.

Share your jQuery code snippets:

  • Get some recognition & a link back to your site.
  • Create your own code library.
  • Help your fellow developers, as they have helped you.


Submit | Browse

Most Recent jquery snippets

Most Viewed