Code Snippet Submit one! Home » Code Snippets » jQuery » Force iframe to ReloadForce iframe to Reload$('iframe').attr('src', $('iframe').attr('src'));
same without JQuery:
Because JQuery is not always needed :)
The difference is that Chris reloads all iframes whereas you only reload the first one the in the DOM tree.
Maybe I’m going way overboard, but if you wanna do it purely in JavaScript with the same results Chris got:
I can't wait for the day Chris learns how to do proper prototyping ;-)
I am newbie,
pls can you tell me where to place the code?
I honestly only wanted to comment because your commenting system is gorgeous.
Kudos
DigWP
A book and blog co-authored by Jeff Starr and myself about the World's most popular publishing platform.
Quotes on Design
Design, like Art, can be an elusive word to define and an awfully fun thing to have opinions about.
HTML-Ipsum
One-click copy to clipboard access to Lorem Ipsum text that comes wrapped in a variety of HTML.
Bookshelf
Hey Chris, what books do you recommend? These, young fertile mind, these.