Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
76
rated 0 times [  83] [ 7]  / answers: 1 / hits: 20914  / 12 Years ago, tue, october 2, 2012, 12:00:00

Possible Duplicate:

Reload an iframe with jQuery






How can I cause an <iframe> to reload on a click event?



I tried this, but it is not working:



jQuery(#link).click(function(){
jQuery('#iframeID')[0].reload();
})

More From » jquery

 Answers
13

like this



document.getElementById('iframeID').contentWindow.location.reload();


or via



document.getElementById('iframeID').src = document.getElementById('iframeID').src;

[#82803] Sunday, September 30, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
andrewb

Total Points: 259
Total Questions: 124
Total Answers: 90

Location: Ivory Coast
Member since Sun, Mar 7, 2021
3 Years ago
;