1 | <HTML>
|
---|
2 | <!-- This file is part of the HTML Reference Library ('HTMLib') -->
|
---|
3 | <!-- It should not be used outside of the HTMLib package -->
|
---|
4 | <!-- The HTMLib is © 1995-1998 Stephen Le Hunte -->
|
---|
5 | <!-- htmlib@htmlib.demon.co.uk -->
|
---|
6 | <HEAD>
|
---|
7 | <LINK REL="stylesheet" HREF="../style.css" TYPE="text/css">
|
---|
8 | <TITLE><BASE></TITLE>
|
---|
9 | </HEAD>
|
---|
10 | <BODY TOPMARGIN="0" BGCOLOR="#FFFFE0" TEXT="#000000">
|
---|
11 |
|
---|
12 | <CENTER>
|
---|
13 | <SPAN CLASS="NSRtitle"><BASE...></SPAN>
|
---|
14 | </CENTER>
|
---|
15 |
|
---|
16 |
|
---|
17 | <P>The Base element allows the URL of the document itself to be set, to help browsers in situations where the document may be read out of context. It is especially useful in allowing browsers to determine any partial URL's, or relative paths that may be specified (for example, in <CODE><A HREF="../Anchors/anchor.htm"><A HREF></A></CODE> elements, or paths pointing to <CODE><A HREF="../Media_Embedding/img.htm"><IMG SRC=...></A></CODE> (images). The <CODE><BASE></CODE> Element should appear within the bounds of the <CODE><A HREF="head.htm"><HEAD></A></CODE> element.
|
---|
18 | <P>Where the base address is not specified, the HTML user agent uses the URL it used to access the document to resolve any relative URLs.
|
---|
19 | <P>The Base element uses the <SPAN CLASS="attr">HREF</SPAN> attribute, which identifies the URL, which should be a fully qualified URL
|
---|
20 |
|
---|
21 | <SPAN CLASS="egcode">
|
---|
22 | <BLOCKQUOTE>
|
---|
23 | <CODE><BASE <STRONG>HREF</STRONG>="http://www.myhost.com/">
|
---|
24 | </CODE>
|
---|
25 | </BLOCKQUOTE>
|
---|
26 | </SPAN>
|
---|
27 |
|
---|
28 | <P>specifies www.myhost.com to be the base from which all relative URLs should be determined.
|
---|
29 |
|
---|
30 | <P><A NAME="TARGET">The</A> <STRONG>Netscape Navigator</STRONG> (from version 2.0) and <STRONG>Internet Explorer</STRONG> (from version 3.0) adds one other attribute to the <CODE>BASE</CODE> element. With the introduction of <A HREF="../Frames/frame.htm">targeted windows</A> the <SPAN CLASS="attr">TARGET</SPAN> attribute as used in anchors (<CODE><A HREF="../Anchors/anchor.htm"><A></A></CODE>) can be used.
|
---|
31 |
|
---|
32 | <P>This allows the author to pick a default named target window for every link in a document that does not have an explicit <CODE>TARGET</CODE> attribute. Its format is:
|
---|
33 |
|
---|
34 | <SPAN CLASS="egcode">
|
---|
35 | <BLOCKQUOTE>
|
---|
36 | <CODE><BASE <STRONG>TARGET</STRONG>="default_target">
|
---|
37 | </CODE>
|
---|
38 | </BLOCKQUOTE>
|
---|
39 | </SPAN>
|
---|
40 |
|
---|
41 | <P><A NAME="CLASS"><SPAN CLASS="attr">CLASS</SPAN></A>="Style Sheet class name"<BR>
|
---|
42 | The <CODE>CLASS</CODE> attribute is used to specify the <CODE><BASE></CODE> as using a particular style sheet class. See the <A HREF="../Style_Sheets/ov.htm" TITLE="View the Style Sheets overview">Style Sheets</A> topic for more information.
|
---|
43 |
|
---|
44 | <P><A NAME="ID"><SPAN CLASS="attr">ID</SPAN></A>="Unique element identifier"<BR>
|
---|
45 | The <CODE>ID</CODE> attribute can be used to either reference a unique style sheet identifier, or to provide a unique name for the <CODE><BASE></CODE> element for scripting purposes. Any <CODE><BASE></CODE> element with an <CODE>ID</CODE> attribute can be directly manipulated in script by referencing its <CODE>ID</CODE> attribute, rather than working through the <A HREF="../Scripting_Reference/allcol.htm" TITLE="View the All collection topic">All collection</A> to determine the element. See the <A HREF="../Scripting_Reference/ov.htm" TITLE="View the Scripting Introduction topic">Scripting introduction</A> topic for more information.
|
---|
46 |
|
---|
47 | <P><A NAME="LANG"><SPAN CLASS="attr">LANG</SPAN></A>="language setting"<BR>
|
---|
48 | The <CODE>LANG</CODE> attribute can be used to specify what language the <CODE><BASE></CODE> element is using. It accepts any valid ISO standard language abbreviation (for example <CODE>"en"</CODE> for English, <CODE>"de"</CODE> for German etc.) For more details, see the <A HREF="../Document_Localisation/ov.htm" TITLE="View the HTML localisation topic">Document Localisation</A> section for more details.
|
---|
49 |
|
---|
50 | <P><A NAME="TITLE"><SPAN CLASS="attr">TITLE</SPAN></A>="informational ToolTip"<BR>
|
---|
51 | The <STRONG>Internet Explorer</STRONG> 4.0 (and above) specific <CODE>TITLE</CODE> attribute is used for informational purposes. As the <CODE><BASE></CODE> element doesn't directly affect the display of a document, no ToolTip is presented when using the <CODE>TITLE</CODE> attribute (as with other elements).
|
---|
52 |
|
---|
53 | <P><HR WIDTH="75%" ALIGN="center">
|
---|
54 |
|
---|
55 | <P><A NAME="SCRIPTING">Consistent</A> with <STRONG>Internet Explorer</STRONG> 4.0's <A HREF="../Dynamic_HTML/dhtml.htm" TITLE="View the Dynamic HTML overview">Dynamic HTML</A> object model, the <CODE><BASE></CODE> element supports various properties and methods. In its role as a document structure element, it supports no events.
|
---|
56 |
|
---|
57 | <P><A NAME="BASE_Properties" TITLE=""><STRONG><CODE><BASE...></CODE> Properties</STRONG></A><BR>
|
---|
58 | Of the <A HREF="../Dynamic_HTML/dhtmlp.htm" TITLE="View the Standard Dynamic HTML properties topic">Standard Dynamic HTML properties</A>, <CODE><BASE></CODE> supports <SPAN CLASS="attr">className</SPAN>, <SPAN CLASS="attr">document</SPAN>, <SPAN CLASS="attr">id</SPAN>, <SPAN CLASS="attr">isTextEdit</SPAN>, <SPAN CLASS="attr">lang</SPAN>, <SPAN CLASS="attr">outerHTML</SPAN>, <SPAN CLASS="attr">outerText</SPAN>, <SPAN CLASS="attr">parentElement</SPAN>, <SPAN CLASS="attr">parentTextEdit</SPAN>, <SPAN CLASS="attr">sourceIndex</SPAN>, <SPAN CLASS="attr">tagName</SPAN> and <SPAN CLASS="attr">title</SPAN>. See the <A HREF="../Dynamic_HTML/dhtmlp.htm" TITLE="View the Standard Dynamic HTML properties topic">Standard Dynamic HTML properties</A> topic for details.
|
---|
59 | <BR>
|
---|
60 | Also, the <CODE><BASE></CODE> element supports the <SPAN CLASS="attr">href</SPAN> and <SPAN CLASS="attr">target</SPAN> properties, which directly reflect any settings of their respective attributes (see above).
|
---|
61 |
|
---|
62 | <P><A NAME="BASE_Methods" TITLE=""><STRONG><CODE><BASE...></CODE> Methods</STRONG></A><BR>
|
---|
63 | Of the <A HREF="../Dynamic_HTML/dhtmlm.htm" TITLE="View the Standard Dynamic HTML methods topic">Standard Dynamic HTML methods</A>, <CODE><BASE></CODE> supports <SPAN CLASS="attr">contains</SPAN>, <SPAN CLASS="attr">getAttribute</SPAN>, <SPAN CLASS="attr">removeAttribute</SPAN> and <SPAN CLASS="attr">setAttribute</SPAN>. See the <A HREF="../Dynamic_HTML/dhtmlm.htm" TITLE="View the Standard Dynamic HTML methods topic">Standard Dynamic HTML methods</A> topic for details.
|
---|
64 | <P>
|
---|
65 |
|
---|
66 | <P ALIGN="right" CLASS="copyright">© 1995-1998, Stephen Le Hunte</P>
|
---|
67 | </BODY>
|
---|
68 | </HTML>
|
---|