Refresh iframe and not the page
3 posters
Page 1 of 1
Refresh iframe and not the page
Hello all.
right I need some help. I want to put some think in my iframe and I want to put a button under it to so if I press it it will refresh the iframe and not the page. how can I do this ? and can this be done in HTML ?
Thanks BL@DE.
right I need some help. I want to put some think in my iframe and I want to put a button under it to so if I press it it will refresh the iframe and not the page. how can I do this ? and can this be done in HTML ?
Thanks BL@DE.
BL@DE- Forumember
- Posts : 161
Reputation : 10
Language : English
Location : England
Re: Refresh iframe and not the page
On the page where your iframe is, add a button like this :
Or just add a link with the same location.
Also note that you can just right click on the iframe > This frame > Reload frame
- Code:
<input type="button" value="refresh" onclick="window.location.reload();" />
Or just add a link with the same location.
Also note that you can just right click on the iframe > This frame > Reload frame
Re: Refresh iframe and not the page
hey thanks for get in back to me. thanks for the button. how can I do a iframe now what is the code to do it ?
BL@DE- Forumember
- Posts : 161
Reputation : 10
Language : English
Location : England
Re: Refresh iframe and not the page
This is the syntax :
PAGE_URL : The URL of the page you want to display.
You can adjust the border and size by adding the style attribute.
- Code:
<iframe src="PAGE_URL"></iframe>
PAGE_URL : The URL of the page you want to display.
You can adjust the border and size by adding the style attribute.
- Code:
style="width:350px;height:250px;border:none"
Re: Refresh iframe and not the page
Hello mate. right I have them all now. were do I put this code to get it work in ?
and how do I get this button work in. I am new to this code in stuff. it is very hard.
- Code:
style="width:350px;height:250px;border:none"
and how do I get this button work in. I am new to this code in stuff. it is very hard.
- Code:
<input type="button" value="Refresh" onclick="window.location.reload();" />
BL@DE- Forumember
- Posts : 161
Reputation : 10
Language : English
Location : England
Re: Refresh iframe and not the page
Like this :
For the button, you'd need to have access to the contents of the linked page to add it in, because you cannot have JavaScript in posts. If it's being added in an HTML page or widget, then you can do this :
- Code:
<iframe src="PAGE_URL" style="width:350px;height:250px;border:none"></iframe>
For the button, you'd need to have access to the contents of the linked page to add it in, because you cannot have JavaScript in posts. If it's being added in an HTML page or widget, then you can do this :
- Code:
<iframe id="myFrame" src="http://help.forumotion.com/" style="width:350px;height:250px;border:none"></iframe>
<input type="button" value="refresh" onclick="document.getElementById('myFrame').src = document.getElementById('myFrame').src;"/>
Re: Refresh iframe and not the page
ok mate thanks very much for your help this topic is done.
BL@DE- Forumember
- Posts : 161
Reputation : 10
Language : English
Location : England
Re: Refresh iframe and not the page
Topic solved and archived
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum