HTML Old School
Linking frames
To link two frames use target and name attributes.
1st frame contain menu links:
<a href="doc_a.html" target="frame_name"><link</a>
2nd frame will load page after clicking:
<frame src="" name="frame_name" >
Example:
Frameset document: 16link_simple.htm
Left document (menu with links): linkovi.html
Link to IFRAME
The same system is used when you want to display page inside IFRAME.
Example: 16link_iframe.html
Reserved targets
There are target reserved values.
target="_blank" - opens link new window
target="_self" - opens link in the same window/frame
target="_parent" - opens link in the parent frame
target="_top" - opens link in the top frame (frame hierarchy)
Example 1:
frameset document: 16link_reserv2.htm
body document 1: parent.html
body document 2: blank.html
Complex example 2:
frameset document: 16link_reserv.htm
CONTENT inside main frameset:
1. body doc: blank.html
2. nested frameset: 16link_reserv2.htm
2.1 body doc inside 16link_reserv2.htm frameset: parent.html
2.2 body doc inside 16link_reserv2.htm frameset: blank.html
3. body doc: top.html
4. body doc: self.html