View Full Version : Targeting an iframe =/
How do you make it so when u click a link, it only changes the iframe and not the whole page cause i cant be bothered with the whole page just reloading over and over again "/
Thread Closed By Owen =]
u make the page the same just change the iframe
Anderman
09-07-2005, 05:57 AM
Name the iFrame using the code below
<IFRAME SRC="http://www.the-pit.co.uk/welcome.php" FRAMEBORDER="0" NAME="main"WIDTH="98%"HEIGHT="315"></IFRAME>
Then put this HTML in your page somwere and ill links will target to the iFrame
<base target="main">
Change main to whatever you want
:)
u make the page the same just change the iframe
do you know anything about websites if your using a free host it would take like a day for your site to load ;)
Tommy
09-07-2005, 07:59 AM
Yeh replace Main with the name you gave youre iframe
splintercell!
09-07-2005, 08:17 AM
or just make your link <a href="URL" target="main">Home</a>
true thts wat i was gonna say but i ent sure wat he meant well done splitercell
Paul::
09-07-2005, 08:45 AM
im confused lol
l@coste mine is a free host with unlimted bandwidth
x.Haven.x
09-07-2005, 09:42 AM
I'm confused too, But hey! xD
Mentor
09-07-2005, 10:31 AM
in an attempt to futher exsplain andermans exsample
Ok this is the ifraim
<IFRAME SRC="http://www.the-pit.co.uk/welcome.php" FRAMEBORDER="0" NAME="main"WIDTH="98%"HEIGHT="315"></IFRAME>
You see the tag name, is set to main. meaning this ifraim is called main, it could be called what ever you like.
Now we have our link
<a href="URL">Home</a>
but to make it only use the ifraim with the name main
<a href="URL" target="main">Home</a>
We set the target to main, meaing the link only targets the ifraim with the name main, so only that ifraim will change page.
in an attempt to futher exsplain andermans exsample
Ok this is the ifraim
<IFRAME SRC="http://www.the-pit.co.uk/welcome.php" FRAMEBORDER="0" NAME="main"WIDTH="98%"HEIGHT="315"></IFRAME>
You see the tag name, is set to main. meaning this ifraim is called main, it could be called what ever you like.
Now we have our link
<a href="URL">Home</a>
but to make it only use the ifraim with the name main
<a href="URL" target="main">Home</a>
We set the target to main, meaing the link only targets the ifraim with the name main, so only that ifraim will change page.
ok thanks :P
l@coste mine is a free host with unlimted bandwidth
Like to see that "/
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.