JavaScript object and array reference Daquan

xiaoxiao2021-03-06  65

JavaScript Objects and Archgroup Reference Big All This article lists a variety of 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 object. Or group of parent objects of arrays can also need to refer to the super text Object Hierarchy page in Online Companion (http://www.netscape/10-9.htm) to understand that these objects are How to interconnect.

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

The HTML point created with tag can be used as a link as a target if an 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 Length array is the number BUTTON object. It is an attribute of the Form object, using tags to create. Property Name HTML Mark Name = Features Value HTML Mark Value = Feature Method Click Analog Mouse Click a Button Event Handler OnClick B.5 Checkbox Object It is an attribute of the Form object, use tags to create. 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's computer is set. 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 with tag (this property itself is also an object)

Anchors array lists the array of document anchor objects () (this property itself is also an object)

BGColor document Background Color (BGColor) cookies stored in a cookie.txt file, which is a property of this document object FGColor document text color (TEXT feature in the tag) Form documentation in a form (

转载请注明原文地址:https://www.9cbs.com/read-119141.html

New Post(0)