-
October 16th, 2006, 02:38 AM
#1
Refreshing an iframe with the same page programatically
On my web page, there is a iframe with a page loaded (from the same domain). There is another button on the web page. When this button is clicked, i want the iframe refreshed with the same page. How can i achieve this?
Another thing to note is that, I do not know the url of the web page displayed in the iframe at any given time.
-
October 16th, 2006, 03:34 AM
#2
Re: Refreshing an iframe with the same page programatically
This is confusing, can you give us an example?
-
October 16th, 2006, 10:36 AM
#3
Re: Refreshing an iframe with the same page programatically
If the web page in the iframe is not in your domain, you will not have access writes to use JavaScript on it. For example if the iframe url is http://www.google.com, you cannot refresh it using JavaScript. If it is in the same domain as your page not in the iframe, use...
Code:
IFRAMENAME.location.reload()
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|