JavaScript object and array reference Daquan

xiaoxiao2021-03-06  89

This article lists various JavaScript objects and arrays, including short descriptions of each of the above objects or arrays, and related attribute methods, and event handlers, but also indicate the parent user of the object or array. It is also possible to refer to the super text Object Hierarchy page in Online Companion (http://www.netscape/10-9.htm) to understand how these objects are related to 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. Number of anchor points in the property Length document

B.3 Array Object Array Objects is a new object introduced in Netscape Navlgator 3.0 Beta 3, which cannot be used in Netscape 2.0 to use it is a built-in object, not the properties of other objects. The value of the value in the attribute Length array

B.4 Button Object It is an attribute of the Form object, use the

B.5 Checkbox Object It is an attribute of the Form object, and uses

B.6 Date Objects It is a built-in object - instead of other objects, allowing users to perform various date and time processes. 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 (

) in the document (this property itself is also an object) Forms Anay, listed in the order in which it appears in the order (this property itself is also an object) LastModified document last modification Date LinkColor Document Link Color, that is, the LINK feature in the tag (link to the user no observed document) A tag in the link document (this property itself is also an object) Links Array document An array of Link objects, in order of the order in which they appear in the document (this property itself is also an object) Location currently displays the URL of the document. Users cannot change Document.Location (because this is the location of the current display). However, you can change Window.Location (replacing the current document with other documents) Window.Location itself is also an object, and Document.Location is not an object REFERRER contains the URL of the link, and the user clicks the title of the current document Title document. ((Title>) VLINKCOLOR Points to the document of the user's observed document, the tag of the VLINK feature method cleared the contents of the specified document Close Close the document flow open Open the document stream Write write text into the document WriteLn put text Write a document and end

B.8 Elements array It is an attribute of the Form object, which lists an array of elements in the form. Attribute 1Ency The element of the element B.9 FORM object is an attribute of the Document object, one form in the document. 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 () (this property itself is also an object) text area element in the Textarta form (