JavaScript objects and array reference Encyclopedia 2

Source: Internet
Author: User
Tags array contains reference reset window
Javascript| Reference | object | Array Links array document an array of link objects in the order in which they appear in the document (the property itself is an object)
Location The URL of the currently displayed document. The user cannot change the document.location (because this is where the document is currently displayed). However, you can change window.location (replacing the current document with other documents) window.location itself is an object, and Document.location is not an object
Referrer contains the URL of the linked document that the user clicks to reach the current document
Title of document ((title>)
Vlinkcolor link text color that points to a document that the user has observed, that is, the vlink characteristics of the <BODY> tag

Method

Clear clears the contents of the specified document
Close closes the document flow
Open Document Flow
Write writes text to a document
Writeln writes text to the document and ends with a newline character.

B.8 Elements Array

It is a property of a Form object that enumerates an array of elements within the form.

Property

Number of elements in a 1ength window
B.9 Form Object
It is a property of the document object and is a form within it.

Property

The action contains a string of the target URL submitted for a form
A button in the button window that is created using the <input type= "button" > tag (the property itself is also an object)
CheckBox checkbox, using the <input type= "checkbox" > tag to create (the property itself is also an object)
An array of elements array that enumerates the form elements in the order in which they appear in the window (the property itself is also an object)
MIME encoding for encoding forms
A hidden element in the hidden form (<input type= "hidden" >). A property of a Form object (the property itself is also an object)
Number of elements in the length form
method to enter the way data on a form is transferred to the server, that is, the methods attribute in the (form) tag
Radio the radio button (<input type= "Radio" >) set in the form (the property itself is also an object)


Reset button in the Reset form (1NPUT type= "reset" >) (the property itself is also an object)
Select box (<SELECT>) in the Select form (the property itself is also an object)
Submit button in submit form (<input type= "Submit" >) (the property itself is also an object)
Target the name of the window that displays the response information after the form is submitted
The text element in the text form (<input type= "Text" >) (the property itself is also an object)
The text area element (<TEXTAREA>) in the Textarta form (the property itself is also an object)
Method
Submit Submission Form (same as action using submit button) event handler
OnSubmit

b.10 Forms Array

The array is an attribute of the Document object, which enumerates an array of the forms within the documents.

Property

Number of forms within length document

B.11 Frame Object

It is a property of the Window object, a frame within the windows. With the exception of individual exceptions, the frame object works the same as the Window object.

Property

The frames array enumerates an array of the various child frames within the frame (the property itself is also-an object)
Length The number of frames within the frame
The name of the name frame (the name attribute in the <FRAME> tag)
Parent contains synonyms for this frame's parents window
Self synonyms for the current frame
Synonyms for window's current frame
Method
Cleartimeout () Work to terminate the SetTimeout method
SetTimeout () waits for the specified number of milliseconds, and then runs the instruction

b.12 Frames Array

It is both a Window object and a property of a Frame object, enumerating the frames within the window or Frame object.

Property

Number of frames within the length window or frame object

B.13 Hidden Object

Paste is a property of the form object, a hidden element within the window (<input type= "HIDDEN" >).

Property

The name within the name tag (name attribute)
Value= Characteristics in value tags

B.14 History Object

It is a property of the Window object, a historical list of the Windows.

Property

Number of items in the length history list

Method

Back loads the previous document in the history list
Forward load the next document in the history list
Go loads a specified document in the history list, specified by the location of the document in the list

B.15 Image Object

It is an attribute of the document object and is an image embedded within a document using the (1MG) tag This is the new object introduced by Netscape Navigator 3.0 Beta 3.

Property



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.