There are 4 special names that you may use as targets, and each starts with an underscore (not a dash):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <HTML> <HEAD> <META NAME="robots" CONTENT="noindex"> </HEAD> <BODY BACKGROUND="../../images/whtmarb.jpg"> <TABLE> <TR><TD> <A HREF="framex1a.html" TARGET="info">The first link</A> </TD></TR> <TR><TD> <A HREF="framex1b.html" TARGET="info">Another link</A> </TD></TR> <TR><TD> <A HREF="framex1c.html" TARGET="info">Very_wide_link_in_the_menu</A> </TD></TR> </TABLE> </BODY> </HTML>This looks like a normal HTML page, because it is one. It has a HEAD and a BODY and defines a background image. The links are contained in a TABLE, and they are regular anchors with HREFs. The only unusual feature is the use of TARGET in the links. I also added the line
<META NAME="robots" CONTENT="noindex">to prevent search engines from indexing the page. While you do want to register your frameset with search engines, you do not want people to find your menu when they run a search.
To save some typing, and to minimize errors, you may change the default target for all the links. This new line goes into the HEAD block as shown below:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <HTML> <HEAD> <META NAME="robots" CONTENT="noindex"> <BASE TARGET="info"> </HEAD> <BODY BACKGROUND="../../images/whtmarb.jpg"> <TABLE> <TR><TD> <A HREF="framex1a.html">The first link</A> </TD></TR> <TR><TD> <A HREF="framex1b.html">Another link</A> </TD></TR> <TR><TD> <A HREF="framex1c.html">Very_wide_link_in_the_menu</A></TD> </TR> </TABLE> </BODY> </HTML>On this page only, any link that does not specify a target will open in the info frame. You may still use TARGET to load certain links into other frames, or to load a page on _top.
< Back to Frameset Code | On to JavaScript > |