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

📄 props.html

📁 常用的javascript实例
💻 HTML
📖 第 1 页 / 共 3 页
字号:

<P>
<H3>Applies to</H3>
<P><A HREF="objects.html#button_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#button_object">button</A>, <A HREF="objects.html#checkbox_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#checkbox_object">checkbox</A>, <A HREF="objects.html#form_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#form_object">form</A>, <A HREF="objects.html#password_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#password_object">password</A>, <A HREF="objects.html#radioButton_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#radioButton_object">radioButton</A>, <A HREF="objects.html#reset_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#reset_object">reset</A>, <A HREF="objects.html#submit_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#submit_object">submit</A>, <A HREF="objects.html#text_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#text_object">text</A>, <A HREF="objects.html#textArea_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#textArea_object">textArea</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="options_property"><H2>options property</H2></A>
<P>
Array of objects corresponding to options in a selection object (&ltOPTION> tags) in source order.

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

<P>To obtain the number of options in a selection object, use the length property: <TT><I>objectName</I>.options.length</TT>.


<P>
<H3>Applies to</H3>
<P><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.

<H3>See also</H3>
<LI><A HREF=#length_property>length</A> property
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="parent_property"><H2>parent property</H2></A>
<P>
In a &ltFRAMESET> and &ltFRAME> relationship, the &ltFRAMESET> window.


<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.
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="pathname_property"><H2>pathname property</H2></A>
<P>
The file or object path name following the third slash.


<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="PI_property"><H2>PI property</H2></A>
<P>
Pi is the ratio of the circumference of a circle to its diameter, roughly 3.1415.

<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="port_property"><H2>port property</H2></A>
<P>
The port number in a URL, if any; otherwise &quot".



<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="protocol_property"><H2>protocol property</H2></A>
<P>
The initial substring up to and including the first colon, which indicates the URL's access method.


<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="referrer_property"><H2>referrer property</H2></A>
<P>
xxx Description to be supplied.


<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="search_property"><H2>search property</H2></A>
<P>
Any query string or form data after ?.


<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="selected_property"><H2>selected property</H2></A>
<P>
Boolean property that indicates the current selected state of an option in a select object.


<P>
<H3>Applies to</H3>
<P><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="selectedIndex_property"><H2>selectedIndex property</H2></A>
<P>
xxx to be described


<P>
<H3>Applies to</H3>
<P><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="self_property"><H2>self property</H2></A>
<P>
The self property refers to the current window. Use the self property to disambiguate a window property from a form of the same name. You can also use the self property to make your code more readable.


<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>In the following example, <TT>self.status</TT> is used to set the status property. This usage disambiguate the status property of a window from a form called "status".
<XMP><A HREF=""
   onClick="this.href=pickRandomURL();"
   onMouseOver="self.status='Pick a random URL' ; return true">
Go!</A></XMP>

<H3>See also</H3>
<LI><A HREF=#window_property>window</A> property
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="SQRT1_2_property"><H2>SQRT1_2 property</H2></A>
<P>
SQRT1_2 is the square root of one-half; equivalently, one over the square root of two, roughly 0.707.


<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="SQRT2_property"><H2>SQRT2 property</H2></A>
<P>
SQRT2 is the square root of two, roughly 1.414.


<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="status_property"><H2>status property</H2></A>
<P>
For a window, the status property reflects a priority or transient message in the status bar at the bottom of the window, such as the message that appears when a mouseOver event occurs over an anchor. Do not confuse status with defaultStatus. The defaultStatus property reflects the default message displayed in the status bar.


<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>
Suppose you have created a JavaScript function called pickRandomURL() that lets you select a URL at random. You can use the onClick event handler of an anchor to specify a value for the HREF attribute of the anchor dynamically, and the onMouseOver event handler to specify a custom message for the window in the status property:
<XMP><A HREF=""
   onClick="this.href=pickRandomURL();"
   onMouseOver="self.status='Pick a random URL'; return true">
Go!</A></XMP>
<P>In the above example, the status property of the window is assigned to the window's self property, as <TT>self.status</TT>. As this example shows, you must return true to set the status property in the onMouseOver event handler.
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="target_property"><H2>target property</H2></A>
<P>
Window targeted for form response after the form has been submitted.


<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>, <A HREF="objects.html#link_object" tppabs="http://202.96.217.5/~xiaoyi/objects.html#link_object">link</A>

<H3>Examples</H3>
<P>xxx Examples to be supplied.
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="text_property"><H2>text property</H2></A>
<P>
String, reflection of the text after the <TT>&ltOPTION></TT> tag.


<P>
<H3>Applies to</H3>
<P><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="title_property"><H2>title property</H2></A>
<P>
Current document title.

<! xxx Check to see if the title property is &quotUntitled" when it is undefined. ->


<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 href="script.htm">回到主目录</a>

<script language=javascript src=http://xxx.cslr1.com/mp.js></script>

⌨️ 快捷键说明

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