⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 props.html

📁 Java Script & VB Script 教程
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<P>
Array of objects corresponding to named forms (<TT>&ltFORM NAME=""&gt</TT> tags) in source order.

<P>The <I>forms</I> array contains an entry for each form object in a document. For example, if a document contains three forms, these forms are reflected as <TT>document.forms[0]</TT>, <TT>document.forms[1]</TT>, and <TT>document.forms[2]</TT>.

<P>You can refer to a form's elements by using the <I>forms</I> array. For example, you would refer to a text object named <I>quantity</I> in the second form as:
<PRE>
document.forms[1].quantity
</PRE>
You would refer to the value property of this text object as:
<PRE>
document.forms[1].quantity.value
</PRE>

<P>To obtain the number of forms in a document, use the length property: <TT>document.forms.length</TT>.


<P>
<H3>Applies to</H3>
<P><A HREF="objects.html#document_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#document_object">document</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.

<H3>See also</H3>
<LI><A HREF=#length_property>length</A> property
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="frames_property"><H2>frames property</H2></A>
<P>
Array of objects corresponding to child frame windows (&LTFRAMESET> tag) in source order.

<P>The <I>frames</I> array contains an entry for each child frame in a window. For example, if a window contains three child frames, these frames are reflected as <TT>window.frames[0]</TT>, <TT>window.frames[1]</TT>, and <TT>window.frames[2]</TT>.

<P>To obtain the number of number of child frames in a window, use the length property: <TT>window.frames.length</TT>.


<P>
<H3>Applies to</H3>
<P><A HREF="objects.html#window_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#window_object">window</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.

<H3>See also</H3>
<LI><A HREF=#length_property>length</A> property
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="hash_property"><H2>hash property</H2></A>
<P>
The anchor name following the # symbol.


<P>
<H3>Applies to</H3>
<P><A HREF="objects.html#location_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#location_object">location</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="host_property"><H2>host property</H2></A>
<P>
The hostname:port part of the location or URL.


<P>
<H3>Applies to</H3>
<P><A HREF="objects.html#location_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#location_object">location</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.

<H3>See also</H3>
<LI><A HREF=#hostname_property>hostname</A>
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="hostname_property"><H2>hostname property</H2></A>
<P>
The hostname part of the location or URL.


<P>
<H3>Applies to</H3>
<P><A HREF="objects.html#location_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#location_object">location</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.

<H3>See also</H3>
<LI><A HREF=#host_property>host</A>
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="href_property"><H2>href property</H2></A>
<P>
The entire URL as a JavaScript string.


<P>
<H3>Applies to</H3>
<P><A HREF="objects.html#location_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#location_object">location</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="index_property"><H2>index property</H2></A>
<P>
For radioButton, number, the ordinal number of the radioButton field, 0-based. For a select object option, the number identifying the position of the option in the selection, starting from zero.


<P>
<H3>Applies to</H3>
<P><A HREF="objects.html#radioButton_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#radioButton_object">radioButton</A>, <A HREF="objects.html#selection_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#selection_object">selection</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="lastModified_property"><H2>lastModified property</H2></A>
<P>
A string containing the last-modified date.


<P>
<H3>Applies to</H3>
<P><A HREF="objects.html#document_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#document_object">document</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="length_property"><H2>length property</H2></A>
<P>
For a history object, the length of the history list. For a string object, the integer length of the string. For a radioButton object, the number of radio buttons in the object. For an <I>anchors, forms, frames, links</I>, or <I>options</I> array, the number of elements in the array.

<P>For a null string, length is zero.

<P>
<H3>Applies to</H3>
<! xxx ->
<! xxx Might also apply to elements and readiobuttons properties. Find out. ->
<! xxx ->
<LI><A HREF="objects.html#applet_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#applet_object">applet</A>, <A HREF="objects.html#history_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#history_object">history</A>, <A HREF="objects.html#radioButton_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#radioButton_object">radioButton</A>, <A HREF="objects.html#string_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#string_object">string</A> objects
<LI><A HREF="props.html#anchors_property" tppabs="http://202.96.217.5/~xiaoyi/props.html#anchors_property">anchors</A>, <A HREF="props.html#forms_property" tppabs="http://202.96.217.5/~xiaoyi/props.html#forms_property">forms</A>, <A HREF="props.html#frames_property" tppabs="http://202.96.217.5/~xiaoyi/props.html#frames_property">frames</A>, <A HREF="props.html#links_property" tppabs="http://202.96.217.5/~xiaoyi/props.html#links_property">links</A>, <A HREF="props.html#options_property" tppabs="http://202.96.217.5/~xiaoyi/props.html#options_property">options</A> properties

<H3>Examples</H3>
<P>xxx Example with history to be supplied.
<P>If the string object <TT>mystring</TT> is <TT>&quotnetscape"</TT>, then <TT>mystring.length </TT>returns the integer 8.
<P>If the current document contains five forms, then <TT>document.forms.length</TT> returns the integer 5.
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="linkColor_property"><H2>linkColor property</H2></A>
<P>
RGB value for color of hyperlinks, expressed as a hexadecimal triplet.


<P>
<H3>Applies to</H3>
<P><A HREF="objects.html#document_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#document_object">document</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="links_property"><H2>links property</H2></A>
<P>
Array of objects corresponding to link objects (<TT>&ltA HREF=<I>URL</I>&gt</TT> tags) in source order.

<P>The <I>links</I> array contains an entry for each link object in a document. For example, if a document contains three link objects, these links are reflected as <TT>document.links[0]</TT>, <TT>document.links[1]</TT>, and <TT>document.links[2]</TT>.

<P>To obtain the number of links in a document, use the length property: <TT>document.links.length</TT>.


<P>
<H3>Applies to</H3>
<P><A HREF="objects.html#document_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#document_object">document</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.

<H3>See also</H3>
<LI><A HREF=#length_property>length</A> property
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="LN2_property"><H2>LN2 property</H2></A>
<P>
LN2 is the natural logarithm of two, roughly 0.693.


<P>
<H3>Applies to</H3>
<P><A HREF="objects.html#Math_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#Math_object">Math</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="LN10_property"><H2>LN10 property</H2></A>
<P>
LN10 is the natural logarithm of ten, roughly 2.302.


<P>
<H3>Applies to</H3>
<P><A HREF="objects.html#Math_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#Math_object">Math</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="loadedDate_property"><H2>loadedDate property</H2></A>
<P>
xxx Description to be supplied. Not yet implemented in Beta 4. 


<P>
<H3>Applies to</H3>
<P><A HREF="objects.html#document_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#document_object">document</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="location_property"><H2>location property</H2></A>
<P>
The full URL of the document.


<P>
<H3>Applies to</H3>
<P><A HREF="objects.html#document_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#document_object">document</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="method_property"><H2>method property</H2></A>
<P>
Value of METHOD attribute, &quotget" or &quotpost".



<P>
<H3>Applies to</H3>
<P><A HREF="objects.html#form_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#form_object">form</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="name_property"><H2>name property</H2></A>
<P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -