📄 ref_a-c.htm
字号:
<htm><title>网络时空——网页制作</title>
<link rel="shortcut icon" href="../../../../ccisn.ico">
<link href="../../../../common.css" type="text/css" rel="stylesheet">
<style type="text/css">
<!--
td,p,div {font-size:9pt;font-family:宋体;}
BODY { font-family:宋体; margin-left:0; margin-top:0; font-size:9pt; background-color:#ffffff;}
A { font-size: 9pt;color:#0000aa; text-decoration:underline;font-family:宋体; }
A:hover,A:active{ color:#FF8019; text-decoration:underline;}
A.top{color:#ffffff;font-size:9pt}
-->
</style>
<body bgcolor="#ffffff" text="#000000" link="#003399" alink="#ff9900" vlink="#000000" background="../../../images/b01.jpg">
<P>按字母排序:
<TABLE WIDTH=70%>
<TR VALIGN=TOP>
<TD>
<LI><A HREF="ref_a-c.htm#abs_method" abs_method">abs</A>
<LI><A HREF="ref_a-c.htm#acos_method" acos_method">acos</A>
<LI><A HREF="ref_a-c.htm#action_property" action_property">action</A>
<LI><A HREF="ref_a-c.htm#alert_method" alert_method">alert</A>
<LI><A HREF="ref_a-c.htm#alinkColor_property" alinkColor_property">alinkColor</A>
<LI><A HREF="ref_a-c.htm#anchor_method" anchor_method">anchor</A>
<LI><A HREF="ref_a-c.htm#anchor_object" anchor_object">anchor (<I>anchors</I> array)</A>
<LI><A HREF="ref_a-c.htm#anchors_property" anchors_property">anchors</A>
<LI><A HREF="ref_a-c.htm#appCodeName_property" appCodeName_property">appCodeName</A>
<LI><A HREF="ref_a-c.htm#appName_property" appName_property">appName</A>
<LI><A HREF="ref_a-c.htm#appVersion_property" appVersion_property">appVersion</A>
<LI><A HREF="ref_a-c.htm#asin_method" asin_method">asin</A>
<LI><A HREF="ref_a-c.htm#atan_method" atan_method">atan</A>
<LI><A HREF="ref_a-c.htm#back_method" back_method">back</A>
<LI><A HREF="ref_a-c.htm#bgColor_property" bgColor_property">bgColor</A>
<LI><A HREF="ref_a-c.htm#big_method" big_method">big</A>
<LI><A HREF="ref_a-c.htm#blink_method" blink_method">blink</A>
<LI><A HREF="ref_a-c.htm#blur_method" blur_method">blur</A>
<LI><A HREF="ref_a-c.htm#bold_method" bold_method">bold</A>
<LI><A HREF="ref_a-c.htm#button_object" button_object">button</A>
<LI><A HREF="ref_a-c.htm#ceil_method" ceil_method">ceil</A>
<LI><A HREF="ref_a-c.htm#charAt_method" charAt_method">charAt</A>
<LI><A HREF="ref_a-c.htm#checkbox_object" checkbox_object">checkbox</A>
<LI><A HREF="ref_a-c.htm#checked_property" checked_property">checked</A>
<LI><A HREF="ref_a-c.htm#clear_method" clear_method">clear</A>
<LI><A HREF="ref_a-c.htm#clearTimeout_method" clearTimeout_method">clearTimeout</A>
<LI><A HREF="ref_a-c.htm#click_method" click_method">click</A>
<LI><A HREF="ref_a-c.htm#close_document_method" close_document_method">close (document)</A>
<LI><A HREF="ref_a-c.htm#close_window_method" close_window_method">close (window)</A>
<LI><A HREF="ref_a-c.htm#confirm_method" confirm_method">confirm</A>
<LI><A HREF="ref_a-c.htm#cookie_property" cookie_property">cookie</A>
<LI><A HREF="ref_a-c.htm#cos_method" cos_method">cos</A>
<LI><A HREF="ref_d-e.htm#Date_object" Date_object">Date</A>
<LI><A HREF="ref_d-e.htm#defaultChecked_property" defaultChecked_property">defaultChecked</A>
<LI><A HREF="ref_d-e.htm#defaultSelected_property" defaultSelected_property">defaultSelected</A>
<LI><A HREF="ref_d-e.htm#defaultStatus_property" defaultStatus_property">defaultStatus</A>
<LI><A HREF="ref_d-e.htm#defaultValue_property" defaultValue_property">defaultValue</A>
<LI><A HREF="ref_d-e.htm#document_object" document_object">document</A>
<LI><A HREF="ref_d-e.htm#E_property" E_property">E</A>
<LI><A HREF="ref_d-e.htm#elements_object" elements_object"><I>elements</I> array</A>
<LI><A HREF="ref_d-e.htm#elements_property" elements_property">elements</A>
<LI><A HREF="ref_d-e.htm#encoding_property" encoding_property">encoding</A>
<LI><A HREF="ref_d-e.htm#escape_method" escape_method">escape</A>
<LI><A HREF="ref_d-e.htm#eval_method" eval_method">eval</A>
<LI><A HREF="ref_d-e.htm#exp_method" exp_method">exp</A>
<LI><A HREF="ref_f-g.htm#fgColor_property" fgColor_property">fgColor</A>
<LI><A HREF="ref_f-g.htm#fixed_method" fixed_method">fixed</A>
<LI><A HREF="ref_f-g.htm#floor_method" floor_method">floor</A>
<LI><A HREF="ref_f-g.htm#focus_method" focus_method">focus</A>
<LI><A HREF="ref_f-g.htm#fontcolor_method" fontcolor_method">fontcolor</A>
<LI><A HREF="ref_f-g.htm#fontsize_method" fontsize_method">fontsize</A>
<LI><A HREF="ref_f-g.htm#form_object" form_object">form (<I>forms</I> array)</A>
<LI><A HREF="ref_f-g.htm#forms_property" forms_property">forms</A>
<LI><A HREF="ref_f-g.htm#forward_method" forward_method">forward</A>
<LI><A HREF="ref_f-g.htm#frame_object" frame_object">frame (<I>frames</I> array)</A>
<LI><A HREF="ref_f-g.htm#frames_property" frames_property">frames</A>
<LI><A HREF="ref_f-g.htm#getDate_method" getDate_method">getDate</A>
</TD>
<TD>
<LI><A HREF="ref_f-g.htm#getDay_method" getDay_method">getDay</A>
<LI><A HREF="ref_f-g.htm#getHours_method" getHours_method">getHours</A>
<LI><A HREF="ref_f-g.htm#getMinutes_method" getMinutes_method">getMinutes</A>
<LI><A HREF="ref_f-g.htm#getMonth_method" getMonth_method">getMonth</A>
<LI><A HREF="ref_f-g.htm#getSeconds_method" getSeconds_method">getSeconds</A>
<LI><A HREF="ref_f-g.htm#getTime_method" getTime_method">getTime</A>
<LI><A HREF="ref_f-g.htm#getTimezoneOffset_method" getTimezoneOffset_method">getTimezoneOffset</A>
<LI><A HREF="ref_f-g.htm#getYear_method" getYear_method">getYear</A>
<LI><A HREF="ref_f-g.htm#go_method" go_method">go</A>
<LI><A HREF="ref_h-l.htm#hash_property" hash_property">hash</A>
<LI><A HREF="ref_h-l.htm#hidden_object" hidden_object">hidden</A>
<LI><A HREF="ref_h-l.htm#history_object" history_object">history</A>
<LI><A HREF="ref_h-l.htm#host_property" host_property">host</A>
<LI><A HREF="ref_h-l.htm#hostname_property" hostname_property">hostname</A>
<LI><A HREF="ref_h-l.htm#href_property" href_property">href</A>
<LI><A HREF="ref_h-l.htm#index_property" index_property">index</A>
<LI><A HREF="ref_h-l.htm#indexOf_method" indexOf_method">indexOf</A>
<LI><A HREF="ref_h-l.htm#isNaN_method" isNaN_method">isNaN</A>
<LI><A HREF="ref_h-l.htm#italics_method" italics_method">italics</A>
<LI><A HREF="ref_h-l.htm#lastIndexOf_method" lastIndexOf_method">lastIndexOf</A>
<LI><A HREF="ref_h-l.htm#lastModified_property" lastModified_property">lastModified</A>
<LI><A HREF="ref_h-l.htm#length_property" length_property">length</A>
<LI><A HREF="ref_h-l.htm#link_method" link_method">link</A>
<LI><A HREF="ref_h-l.htm#link_object" link_object">link (<I>links</I> array)</A>
<LI><A HREF="ref_h-l.htm#linkColor_property" linkColor_property">linkColor</A>
<LI><A HREF="ref_h-l.htm#links_property" links_property">links</A>
<LI><A HREF="ref_h-l.htm#LN2_property" LN2_property">LN2</A>
<LI><A HREF="ref_h-l.htm#LN10_property" LN10_property">LN10</A>
<LI><A HREF="ref_h-l.htm#location_object" location_object">location</A>
<LI><A HREF="ref_h-l.htm#location_property" location_property">location</A>
<LI><A HREF="ref_h-l.htm#log_method" log_method">log</A>
<LI><A HREF="ref_h-l.htm#LOG2E_property" LOG2E_property">LOG2E</A>
<LI><A HREF="ref_h-l.htm#LOG10E_property" LOG10E_property">LOG10E</A>
<LI><A HREF="ref_m-q.htm#Math_object" Math_object">Math</A>
<LI><A HREF="ref_m-q.htm#max_method" max_method">max</A>
<LI><A HREF="ref_m-q.htm#method_property" method_property">method</A>
<LI><A HREF="ref_m-q.htm#min_method" min_method">min</A>
<LI><A HREF="ref_m-q.htm#name_property" name_property">name</A>
<LI><A HREF="ref_m-q.htm#navigator_object" navigator_object">navigator</A>
<LI><A HREF="ref_m-q.htm#onBlur_event" onBlur_event">onBlur</A>
<LI><A HREF="ref_m-q.htm#onChange_event" onChange_event">onChange</A>
<LI><A HREF="ref_m-q.htm#onClick_event" onClick_event">onClick</A>
<LI><A HREF="ref_m-q.htm#onFocus_event" onFocus_event">onFocus</A>
<LI><A HREF="ref_m-q.htm#onLoad_event" onLoad_event">onLoad</A>
<LI><A HREF="ref_m-q.htm#onMouseOver_event" onMouseOver_event">onMouseOver</A>
<LI><A HREF="ref_m-q.htm#onSelect_event" onSelect_event">onSelect</A>
<LI><A HREF="ref_m-q.htm#onSubmit_event" onSubmit_event">onSubmit</A>
<LI><A HREF="ref_m-q.htm#onUnload_event" onUnload_event">onUnload</A>
<LI><A HREF="ref_m-q.htm#open_document_method" open_document_method">open (document)</A>
<LI><A HREF="ref_m-q.htm#open_window_method" open_window_method">open (window)</A>
<LI><A HREF="ref_m-q.htm#options_property" options_property">options</A>
<LI><A HREF="ref_m-q.htm#parent_property" parent_property">parent</A>
<LI><A HREF="ref_m-q.htm#parse_method" parse_method">parse</A>
<LI><A HREF="ref_m-q.htm#parseFloat_method" parseFloat_method">parseFloat</A>
<LI><A HREF="ref_m-q.htm#parseInt_method" parseInt_method">parseInt</A>
<LI><A HREF="ref_m-q.htm#password_object" password_object">password</A>
<LI><A HREF="ref_m-q.htm#pathname_property" pathname_property">pathname</A>
</TD>
<TD>
<LI><A HREF="ref_m-q.htm#PI_property" PI_property">PI</A>
<LI><A HREF="ref_m-q.htm#port_property" port_property">port</A>
<LI><A HREF="ref_m-q.htm#pow_method" pow_method">pow</A>
<LI><A HREF="ref_m-q.htm#prompt_method" prompt_method">prompt</A>
<LI><A HREF="ref_m-q.htm#protocol_property" protocol_property">protocol</A>
<LI><A HREF="ref_r-r.htm#radio_object" radio_object">radio</A>
<LI><A HREF="ref_r-r.htm#random_method" random_method">random</A>
<LI><A HREF="ref_r-r.htm#referrer_property" referrer_property">referrer</A>
<LI><A HREF="ref_r-r.htm#reset_object" reset_object">reset</A>
<LI><A HREF="ref_r-r.htm#round_method" round_method">round</A>
<LI><A HREF="ref_s-s.htm#search_property" search_property">search</A>
<LI><A HREF="ref_s-s.htm#select_method" select_method">select</A>
<LI><A HREF="ref_s-s.htm#select_object" select_object">select (<I>options</I> array)</A>
<LI><A HREF="ref_s-s.htm#selected_property" selected_property">selected</A>
<LI><A HREF="ref_s-s.htm#selectedIndex_property" selectedIndex_property">selectedIndex</A>
<LI><A HREF="ref_s-s.htm#self_property" self_property">self</A>
<LI><A HREF="ref_s-s.htm#setDate_method" setDate_method">setDate</A>
<LI><A HREF="ref_s-s.htm#setHours_method" setHours_method">setHours</A>
<LI><A HREF="ref_s-s.htm#setMinutes_method" setMinutes_method">setMinutes</A>
<LI><A HREF="ref_s-s.htm#setMonth_method" setMonth_method">setMonth</A>
<LI><A HREF="ref_s-s.htm#setSeconds_method" setSeconds_method">setSeconds</A>
<LI><A HREF="ref_s-s.htm#setTime_method" setTime_method">setTime</A>
<LI><A HREF="ref_s-s.htm#setTimeout_method" setTimeout_method">setTimeout</A>
<LI><A HREF="ref_s-s.htm#setYear_method" setYear_method">setYear</A>
<LI><A HREF="ref_s-s.htm#sin_method" sin_method">sin</A>
<LI><A HREF="ref_s-s.htm#small_method" small_method">small</A>
<LI><A HREF="ref_s-s.htm#sqrt_method" sqrt_method">sqrt</A>
<LI><A HREF="ref_s-s.htm#SQRT1_2_property" SQRT1_2_property">SQRT1_2</A>
<LI><A HREF="ref_s-s.htm#SQRT2_property" SQRT2_property">SQRT2</A>
<LI><A HREF="ref_s-s.htm#status_property" status_property">status</A>
<LI><A HREF="ref_s-s.htm#strike_method" strike_method">strike</A>
<LI><A HREF="ref_s-s.htm#string_object" string_object">string</A>
<LI><A HREF="ref_s-s.htm#sub_method" sub_method">sub</A>
<LI><A HREF="ref_s-s.htm#submit_method" submit_method">submit</A>
<LI><A HREF="ref_s-s.htm#submit_object" submit_object">submit</A>
<LI><A HREF="ref_s-s.htm#substring_method" substring_method">substring</A>
<LI><A HREF="ref_s-s.htm#sup_method" sup_method">sup</A>
<LI><A HREF="ref_t-z.htm#tan_method" tan_method">tan</A>
<LI><A HREF="ref_t-z.htm#target_property" target_property">target</A>
<LI><A HREF="ref_t-z.htm#text_object" text_object">text</A>
<LI><A HREF="ref_t-z.htm#text_property" text_property">text</A>
<LI><A HREF="ref_t-z.htm#textarea_object" textarea_object">textarea</A>
<LI><A HREF="ref_t-z.htm#title_property" title_property">title</A>
<LI><A HREF="ref_t-z.htm#toGMTString_method" toGMTString_method">toGMTString</A>
<LI><A HREF="ref_t-z.htm#toLocaleString_method" toLocaleString_method">toLocaleString</A>
<LI><A HREF="ref_t-z.htm#toLowerCase_method" toLowerCase_method">toLowerCase</A>
<LI><A HREF="ref_t-z.htm#top_property" top_property">top</A>
<LI><A HREF="ref_t-z.htm#toUpperCase_method" toUpperCase_method">toUpperCase</A>
<LI><A HREF="ref_t-z.htm#unescape_method" unescape_method">unescape</A>
<LI><A HREF="ref_t-z.htm#userAgent_property" userAgent_property">userAgent</A>
<LI><A HREF="ref_t-z.htm#UTC_method" UTC_method">UTC</A>
<LI><A HREF="ref_t-z.htm#value_property" value_property">value</A>
<LI><A HREF="ref_t-z.htm#vlinkColor_property" vlinkColor_property">vlinkColor</A>
<LI><A HREF="ref_t-z.htm#window_object" window_object">window</A>
<LI><A HREF="ref_t-z.htm#window_property" window_property">window</A>
<LI><A HREF="ref_t-z.htm#write_method" write_method">write</A>
<LI><A HREF="ref_t-z.htm#writeln_method" writeln_method">writeln</A>
</TD>
</TR>
</TABLE>
<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="abs_method"><H2>abs method</H2></A>
<P>Returns the absolute value of a number.
<H3>语法</H3>
<PRE>Math.abs(<I>number</I>)</PRE>
<P><I>number</I> is any numeric expression or a property of an existing object.
<H3>用法</H3>
<P><A HREF="ref_m-q.htm#Math_object" Math_object">Math</A>
<H3>例子</H3>
<P>In the following example, the user enters a number in the first text box and presses the Calculate button to display the absolute value of the number.
<PRE>
<FORM>
<P>Enter a number:
<INPUT TYPE="text" NAME="absEntry">
<P>The absolute value is:
<INPUT TYPE="text" NAME="result">
<P>
<INPUT TYPE="button" VALUE="Calculate"
onClick="form.result.value = Math.abs(form.absEntry.value)">
</FORM>
</PRE>
<!------------------------------------------------------------------------------------------------>
<HR>
<A NAME="acos_method"><H2>acos method</H2></A>
<P>Returns the arc cosine (in radians) of a number.
<H3>语法</H3>
<PRE>Math.acos(<I>number</I>)</PRE>
<P><I>number</I> is a numeric expression between -1 and 1, or a property of an existing object.
<H3>用法</H3>
<P><A HREF="ref_m-q.htm#Math_object" Math_object">Math</A>
<H3>描述</H3>
<P>The acos method returns a numeric value between 0 and pi radians. If the value of <I>number</I> is outside the suggested range, the return value is always 0.
<H3>例子</H3>
<PRE>
// Displays the value 0
document.write("The arc cosine of 1 is " + Math.acos(1))
// Displays the value 3.141592653589793
document.write("<P>The arc cosine of -1 is " + Math.acos(-1))
// Displays the value 0
document.write("<P>The arc cosine of 2 is " + Math.acos(2))
</PRE>
<H3>See also</H3>
<LI><A HREF="ref_a-c.htm#asin_method" asin_method">asin</A>, <A HREF="ref_a-c.htm#atan_method" atan_method">atan</A>, <A HREF="ref_a-c.htm#cos_method" cos_method">cos</A>, <A HREF="ref_s-s.htm#sin_method" sin_method">sin</A>, <A HREF="ref_t-z.htm#tan_method" tan_method">tan</A> methods
<!------------------------------------------------------------------------------------------------>
<HR>
<A NAME="action_property"><H2>action property</H2></A>
<P>
A string specifying a destination URL for form data that is submitted.
<H3>语法</H3>
<PRE><I>formName</I>.action</PRE>
<P><I>formName</I> is either the name of a form or an element in the <I>forms</I> array.
<H3>Property of</H3>
<P><A HREF="ref_f-g.htm#form_object" form_object">form</A>
<H3>描述</H3>
<P>The action property is a reflection of the ACTION attribute of the <FORM> tag. Each section of a URL contains different information. See the <A HREF="ref_h-l.htm#location_object" location_object">location</A> object for a 描述 of the URL components.
<P>You can set the action property at any time.
<P>Certain values of the action property may require specific values for other form properties. See <A HREF="tppmsgs/msgs0.htm#3" tppabs="http://www.ics.uci.edu/pub/ietf/htm/rfc1867.txt" TARGET="_top">RFC 1867</A> for more information.
<H3>例子</H3>
<P>The following example sets the action property of the <I>musicForm</I> form to the value of the variable <I>urlName</I>:
<PRE>document.musicForm.action=urlName</PRE>
<H3>See also</H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -