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 (
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 (
B.11 Frame Object It is an attribute of the Window object, a frame in the window. In addition to individual exceptions, the Frame object is the same as the Window object. Properties Frames Array list an array of each sub-frame within the frame (this property itself is also - an object) Length The frame number of the frame in this frame (Name "in the tag) Parent contains the Father of this framework Synonym of the window SELF current framework synonyms WINDOW CLETIMEOUT () Used to terminate the settimeout method to wait for the specified millisecond number, then run the instruction
B.12 Frames array It is both a Window object and an attribute of the Frame object, which lists each frame in Window or Frame object. Number of frames within the property Length window or frame object
B.13 Hidden Objects By a property of the Form object, a hidden element in the form (
B.14 History object It is an attribute of the Window object, the historical list of the window. Attribute Length History List of Items Method BACK Loading the Previous Document Forward Loading History Listing The next document GO load history list in a specified document in the list, specify the location in the list in the list
B.15 Image Objects It is an attribute of the Document object, which is an image in which the document is embedded in the document is used (1MG) This is the new object introduced into the Netscape Navigator 3.0 Beta 3. Property Border tag Border Features Complete indicates whether the browser completely loads an image HSPACE HSPACE TRC LOWSRC Trogram SRC SRC Features VSPACE VSPACE Features Width Width Features Event Handler Onload Image Load OneRror Load Error OnAbort Cancel B.16 Images array It is an attribute of the Document object, a list of all images in the document. The number of images within the LENGTH document
B.18 LINKS array It is an attribute of the Document object, one list of all links in the document. The number of links within the LENGTH document
B.19 Location Objects It is an attribute of the Document object. The full URL of the document, please do not confuse it with the window.location property, the latter can be used to load a new document, and the window.location property is not an object At the same time, Window.Location can be modified by script, and Document.Location cannot. 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 on the link (TARGET ", the window for displaying the contents of the referenced document
B.20 Math Object This object is not an attribute of other objects, but an 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 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 (
B.23 Password Object It is an attribute of the Document object, one tag. Property DefaultValue Password Object Default (Value = Features) Name Object Name (Name = Features) Value The current value of this domain is the same as the value = feature (DefAuttValue), but if the script modified the value in the domain , Then the value will change the method FOCUS to move the focus from the domain to the focus to the domain Select Select the input area.
B.24 Radio object It is an attribute of the Form object, a set of radio buttons in the form (option button) (). Property Name Objects (Name = Features) Value Value = Feature Method Click Analog Mouse Click the Button Event Handler Onclick Click
B.26 SELECT object it is an attribute of the Form object, select box (
B.27 String Object It is not an attribute of another object, but a built-in object, that is, a string of characters must be in the quotation marks in the input script. The characters in the property Length string are used to convert the string to the HTML anchor mark () BIG () turn the text in the string into a large font () Blink () turn the text in the string into a flash font (
B.28 Submit Object It is an attribute of the Form object, a submission button in the form (
B.29 Text Object It is an attribute of the Form object, one text field in the universe (). Property DEFAULTVALUE TEXTAREA Object Default (VALUE = Features) Name The name of the object (Name = Features) Value The current value of this domain, initially identical to value = characteristics, however, if the script modified in this domain The value will change. Method BLUR puts the focus from the text area to move the focus to the text area Select Select the input area event handler Event handler ONBLUR Lost Focus event onchange Change the ONFOCUS Focus Event Onsect Selection Event
B.31 Window Object It is a top object, not the property of another object, is a browser window. Properties DEFAULTSTATUS Default Status Bar Message Document Currently Displayed Document (This property itself is also an object) A frame in the frame window (this property itself is also an object) Frames Array lists the frame objects of the window. Follow these objects to list sequentials in the document (this property itself is also an object) History window history list (this property itself is also an object) The full (absolute) URL of the Location window in the LENGTH window (absolute) URL (absolute) URL This property itself is also an object) Do not confuse it with Document.Location, the latter is the URL of the current display document. Users can change Window.Location (replacing the current document with another document), but can not change Document.Location Because this is the location of the current display) Name window, the name Opener gives the window Opener represents the window where the current window opens the current window (this is a new attribute introduced by Netscape Navigator 3.0beta 3) Parent contains The synonym of the current frame window. A property of the Frame and the Window object Self Current window or frame synonym status TOP contains the synonym of the top-level browser window of the current frame WINDOW Current window or frame synonym, same as Self Method ALERT () Opens a Alert message box CleartimeOut () Use the Work Close () Close window confirm () to open a settimeout method, open a confirm message box, the user can select OK or Cancel, if the user clicks OK, this method returns true Click Cancel to return false blug () to remove the focus from the specified window (this is a new method introduced by Netscape Navigator 3.0 beta 3) FOCUS () takes the specified window to the front desk (another new method) open () open one The new window Prompt () opens a Prompt dialog box, the user can type text to the box and return the typed text to the script setTimeout () Wait a specified millisecond time, then run the instruction event handler event handler online () Trigger when the onunload () page is triggered when the page is loaded.