| filsa.net: Frontier / Scripts / Pageheader Macros / Base Tag |
|
|
UPDATED: Ready for Frontier 5!Base TagMore relief for people who code frames
The base tag serves two separate and very different functions. The href attribute provides a basis for calculating relative links, and the target attribute sets a default target for links--handy for frames. Although the href is required in the DTD, I leave it optional as neither Netscape nor IE follow the DTD here. Which makes sense--the attributes server two very different purposes. Using the #base directive #base "www.scripting.com" or #base "http://www.scripting.com" results in: <BASE href="http://www.scripting.com"> You can also define targets for the BASE tag:
#base "www.eudora.com" results in this BASE tag: <BASE href="http://www.eudora.com" target="_parent"> Note how the script adds the underscore automatically to the target name. It does this only for the special target names: _parent, _top, _blank, and _self. If you forget the http:// at the beginning of your #base directive, the script also takes care of that for you. Remember, the BASE tag requires an absolute URL. Be sure your #base directive is in the proper form. Another way to use the #base directive The base directive can also be a list, with two items. The first item corresponds to the href attribute, and the second, to the target attribute. #base {\"http:\//www.myserver.com/index.html\", "mainFrame"} results in <BASE href="http://www.myserver.com/index.html" target="mainFrame"> Mon, Mar 16, 1998 at 8:56:10 PM by PS
|
||
View the Source: user.html.macros.baseTag |
|||
|
© copyright 1997-98 by Philip Suh. Comments are appreciated. This page last updated on 5/10/98; 9:26:26 PM. <http://www.filsa.net/frontier/scripts/PageheaderMacros/baseTag.html> |
| filsa.net: Frontier / Scripts / Pageheader Macros / Base Tag |