Re: iframe refresh
[email protected] Thu, 10 Apr 2014 15:25:42 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Message-ID | <[email protected]> |
On Thursday, April 10, 2014 10:48:12 AM UTC-6, [email protected] wrote: > Is there a way to refresh the contents of an iframe? I tried document.getElementById("iframeid").setAttribute("src","website_url"); but it didn't work. Is "website_url" a variable or a string? As shown in your example, it's a string and that won't work. The following worked for me: doRefresh(website_url) { document.getElementById("iframeid").setAttribute("src",website_url); }