faqts : Computers : Programming : Languages : JavaScript : Frames

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

9 of 30 people (30%) answered Yes
Recently 2 of 10 people (20%) answered Yes

Entry

In nested frames, how can I load a document from outside frame to a frame which is inside a frameset

Nov 14th, 2001 07:43
Peter Ritchie, Sharon De Silva,


Simply name your frames (or assign a value to the NAME attribute of the 
FRAME element) in the defintion of your FRAMESET, for example:
<FRAMESET ROWS="50%, *">
     <FRAME NAME="top" SRC="top.htm">
     <FRAME NAME="bottom" SRC="bottom.htm">
</FRAMESET>
Then, when adding a hyperlink, add the target element to the anchor 
tag, for example, in top.htm:
<a href="bottom2.htm" target="bottom">change bottom</a>
If the bottom frame is no longer visible (e.g. we pointed the browser 
at top.htm) this will cause bottom2.htm to appear in a new window.