TMLP Online HTML Primer

Frame Interaction

Unlike naming images or other elements, naming frames is VERY important in order to allow frames to interact with each other.

Use of frames introduces the use of a new parameter for the link anchor (<a>) tag: TARGET.

By specifying a specific TARGET parameter, users can click on a link in the content of one frame and have the result URL displayed in a different frame (the one specified by the TARGET parameter)

Example Of Frame Interaction

Frame setup:

Frame Name: FRAME1

Current Contents: TMLP1.HTM

Frame Name: FRAME2

Current Contents: TMLP2.HTM

Frame Name: FRAME3

Current Contents: TMLP3.HTM

If a piece of code in the file “TMLP1.HTM” shows:

<a href=“TMLP4.HTM” TARGET= FRAME3> Click Here </a>

hitting the "Click Here" link will cause the HTML file “TMLP4.HTM” to appear in the frame named “FRAME3."

If no “TARGET” is specified, the browser will assume that the target of any link clicked on is the frame the link was in. (for example, if the above code read <a href=“TMLP4.HTM”>Click Here</a>, clicking on the words “Click Here” would cause TMLP4.HTM to appear in the frame labelled FRAME1.)


Previous: Frames Elements and Parameters
Next: Reserved Frame Names
Return To TMLP Online Residential Services