Click to See Complete Forum and Search --> : open frameset by clicking on link and staying in the same window
Folio
04-04-2003, 12:52 PM
Hello,
Can somebody please help me with this little code problem.
How do I get to open presentation.html in frame content.html of frameset home.html by clicking on the link presentation on page index.html and all this without leaving the window???
Thanks for helping me out!
gil davis
04-04-2003, 12:59 PM
What name did you give the frame that you load "content.html" into?
Folio
04-04-2003, 01:07 PM
NAME="content"
gil davis
04-04-2003, 01:16 PM
There are a couple of ways to get a page to load in a named frame. One is to use the target portion of the link.<a href="presentation.html" target="content" ...>Another is to set <BASE TARGET="content"> in index.html. This will make all links in index.html open in "content".
Another is using javascript and the location object.<a href="#" onclick="window.top.content.location.href='presentation.html';return false" ...>
Folio
04-07-2003, 04:37 PM
:( some days later and i still won't work! (Thanks anyway Gil Davis)
What I'm trying to do is to open a page in a particular frame starting from a link that is located in a complete different document than the one in which I want to open it.
Using the target portion of a link only works between frames in the same frameset, so does <BASE TARGET="content">
What I want to do is starting from a document, lets call it index.html opening a page in frame "content" of frameset home.html and this in the same window.
By clicking on the link, first of all home.html (framset with two frames) has to load in the same window (replacing index.html in that window) and in a second stage the approriate html document (depending on which link has been clicked on in the index.html document) has to load in the corresponding frame (in this case frame NAME="content").
Can somebody please help me with this one ?!?!