[Reprinted] JavaScript object and array reference Big All This paper enumerates various JavaScript objects and arrays, including short descriptions of each of the above objects or arrays, and related attribute methods, and event handler, also indicate The user of the object or array is also likely to refer to the super text Object Hierarchy page in Online Companion (http://www.netscape/10-9.htm) to understand these objects How to interconnect between each other. By the way, remember, here all the objects of the child object as another object see the property of this object, see Chapter 10, in this decomposition. B.1 Anchor object Use the HTML point created by Mark to be used as a link as a target if the anchor includes href = characteristics, it is also a link object. Anchor object is an attribute of the Document object, which does not have an attribute method or an event handler. B.2 Anchors array anchors array is an attribute of the Document object. It is a list of all Anchor objects in the document. If Anchor is also a link (link), it will appear at the ANCHORS and LINKS arrays. The ARRAY Object Array Object is a new object introduced in Netscape Navlgator 3.0 Beta 3, which cannot be used in Netscape 2.0 using it in Netscape 2.0, not other objects Attributes. The value of the value of the attribute length array B.4 Button Object It is an attribute of the Form object, and uses Marks are created. Attribute Checked check box Select status default CHECHECKED tag for check = Features Name Name Name = Features Value Tag VALUE = Feature Click Analog Mouse Click the Button Event Handler OnClick B.6 Date Object It is a built-in object - Not attributes of other objects, allowing users to perform various processes of various uses and time.
Method getDate () View Date object and return date getday () Return to a few getMinutes () Return to the number of getMINUTES () Return to the month GetSeconds () Return to the second number getTime () Return Complete Time GetTimezoneoffset () Return time zone deviation value (the number of hours) between Greenwich average time and time zone settings in the computer of the run script) getYear () Returns Parse () Return to Date String Since January 1, 1970 00:00 The number of milliseconds since: 00 (DATE object stores from the number of milliseconds from the date and time), but note that the method does not currently run setDate () change the date of the date object SetHours () change the hour number setminutes () Changing the number of minutes setMonth () change the month setSeconds () change the number of seconds setTime () change the complete time setYear () change the year togMTString () Transform the date (a value) of the DATE object into a GMT time string, return to the following Value: WEDS, 15 JUNE L997 14:02:02 GMT (Accurate Format Depending on the operating system running on your computer) TOLOCALESTRING () transforms the date (a value) of the DATE object into a string, using the computer The specific date format UTC () uses Date UTC (year, month, day, hour, minute, second), is available from January 1, 1970 (where the time, minute, second is optional) Number of milliseconds since return date B.7 Document Objects This object is an attribute of Window and Frames objects, which is a document displayed in a window or frame. Attribute ALINKCOLOR activity link color (ALINK) Anchor an HTMI anchor, created using the Tag (this property itself is also an object) Anchors array lists the array of document anchor objects () The attribute itself is also an object) BGColor document background color (BGColor) cookie stored in a cookie.txt file, which is the text color of the document object FGColor document text color (Text Features in the tag) Form One form (
The property action contains a button in the string Button form submitted for a form, creates tag to create (this property itself is also an object) Elements Array an array that lists each form element in order that appears in the form (this property itself is also an object) Encoding form. MIME Hidden elements in the Hidden form (). A property of the form object (this property itself is also an object) The number of Elements in the Length form Method Enter the form of the data to the server, ie the method in the (form) tag is set in the form. The radio button () (This property itself is also an object) SELECT window The selection box (
Property Border Tag Border Features Complete indicates whether the browser is fully loaded with a Boolean Height Height feature HSPACE HSPACE TRC LOWSRC Features SRC SRC Features VSPACE VSPACE Features Width Width Features Event Handler Online ONABORT B.16 Images arrays It is an attribute of the Document object, a list of all images in the document. Attribute Length Document Images B.17 LINK It is an attribute of the Document object, one tag within the document. The attribute hash starts with a string beginning with the hash number (#), and an anchor host in the URL includes the host name part of the URL of the URL and the port number is the same as the Host property, except for the colon and port number HREF. Complete URL Pathname URL Directory Path Section Port URL: Port Section Protocol URL Type (http:, ftp:, gopher:, etc.) Search in a URL starting in a question mark, used to specify search information Target When user list When a link (TARGET feature) is used to display the referenced document content, the ONMOUSEOVER B.18 LINKS array is an attribute of the Document object, one list of all links in the document. Attribute Length Document Links B.19 Location Objects It is an attribute of the Document object, the full URL of this document, please do not confuse it with the window.location property, the latter can be used to load a new document, and Window. The location attribute itself is not an object, and Window.Location can be modified by script, and Document.Location cannot be. The attribute hash starts with a string beginning with the hash number (#) used to specify an anchor host in the URL, including the host name part of the URL of the colon and the port number, the same HostName is the same, except that the colon and port number are not included. Outside HREF full URL Pathname URL directory path part of the PORT URL: Port Section Protocol URL (http:, ftp:, gopher:, etc.) Search Search in the URL starting in question mark (?), Used to specify a search Information Target User Click the link (Target feature), a window B.20 Math object for displaying the contents of the referenced document is not an attribute of other objects, but a built-in object that contains many mathematical constants and functions.
Attribute E Euler constant, natural logarithmic bottom (approximately equal to 2.718) LN2 2 natural logarithmic (about 2.302) LN10 10 is aligned with 2 E.di (about 2.302) Log2e Isome 1.442) LOG10E (about equal to 3.14159) SQRT1_2 0.5 square root (i.e., L divination of 2 square root, approximately equal to O.707) SQRT2 2 The square root (approximately equal to 1.414) method ABS () returns a certain absolute value (ie the distance from the number and O, for example, the absolute value of 2 and one 2 is 2) ACOS () returns a number of anti-hosh values ( Returns a number of anti-stereo values () returned () returned () returned () returned () returned to a number of intermediate cut values () returned to a certain number of intermediate cut values () returned to a certain number of uniforms, or greater than this number Minimum integer (CEIL (-22.22) returns -22; CEIL22, 22) Returns 23; CEIL (22) Returns 22) COS () Returns a cosine value exp () returns EN FLOOR () in an arc unit) In contrast to CEIL (FLOOR (1 22.22) returns a 23; floor (22.22) returns 22; FLOOR (22) Returns 22) 10g () Returns a natural logarithm (E.) MAX () returns two times The larger value min () returns the smaller value of the two questions POW () returns the N times of M (where M is the bottom, n is an index) Random () returns a pseudo-random number between 0 and 1 ( This method is only valid only in the UNIX version of Netscape Navigator) Round () returns a number of square sin () returns a sinus () returned to a square root Tan () returned to a square root Tan () returned. Number of corrective values B.2L Navigator object This object is not an attribute of other objects, but an built-in object contains information about the browser of the document. Property AppCodename Browser's code name (for example, Mozilla) AppName browser's name AppVersion browser version number UserAgent sent to the server by the client and agent header text method JavaEnabled JavaScript does not have this method, but soon It will be added to see if the browser is a browser compatible with JavaScript, if yes, continue to see if JavaScript is in support. B.22 Options array This array is a list of select objects, namely a list of all options in the Select box. The DefaultSelected Options list The default Options in the list of Index Options Lists in the list of options LENGTH Options list (
Property Checked check box or option button (radio button) Status DEFAULTCHECKED check box or option button (radio button) Default status of the LENGTH A set of buttons in a set button Name object's name (Name = Features) Value Value = Feature Method Click Analog Mouse Click the Button Event Handler OnClick B.25 Reset Object It is an attribute of the Form object, the reset button (). Options (