Frame Name and Frame Target
Posted by admin | Posted in HTML Tutorial | Posted on 11-08-2010-05-2008
0
Name attribute gives a unique name to a frame, by which it is identified whenever we need to call it or refer to it.
Target attribute species a name of a frame in which we want that link to be opened.
Example:
- <html><head></head>
- <frameset rows=”20%,*”>
- <frame src=”title.html”>
- <frameset cols=”30%,*”>
- <frame src=”menu.html”>
- <name=”content” src=”content.html”>
- </frameset>
- </html>
Example:
- <html>
- <head>
- <base target=”content”>
- </head>
- </html>
Frame Target:
Here’s the Visual: Visual
We first named the content frame “content” on our frame page and then we set the base target inside menu.html to point to that frame. Our frame page is now a perfectly functional menu & content layout!
