JavaScript objects and array reference Encyclopedia 5

Source: Internet
Author: User
Tags array contains reference return string window
Javascript| Reference | object | array sup () to turn text in a string into superscript (superscript) font (<SUP>)
toLowerCase () turns text in a string to lowercase
toUpperCase () to capitalize text in a string

b.28 Submit Object

It is a property of the Form object, a Submit button (<input type= "Submit" >) in the forms.

Property

Name (name= attribute) of the name object
Value Value= Property
Method
Click Simulate mouse button
Event handlers
Onclick Click

B.29 text Object

It is a property of a Form object, a text field in the Universe (<input type= "text" >).

Property

DefaultValue text object's default value (Value= attribute)
Name of the object (Name= attribute)
Value The field has the current value, initially the same as the value= attribute (defaultvalue) But if the script modifies a value in that field, the value changes
Method
Blur move focus away from the text box
Focus moves to the text box
Select Choose Input Area
Event handlers
Onblur Lose Focus Event
Onchange changes
Onfocus Spotlight Event


Onselect Selection Event

b.30 TextArea Object

It is a property of the Form object, a text area (<TEXTAREA>) in the universe.

Property

Default value of DefaultValue textarea object (value= attribute)
Name of the object (Name= attribute)
Value the current value of the field is initially the same as the value= attribute (defaultvalue), but the value will change if the script modifies the value in that field.

Method

Blur shift the focus away from the text area
Focus moves to the text area
Select selects Input area event handlers
Event handlers
Onblur Lose Focus Event
Onchange changes
Onfocus Spotlight Event
Onselect Selection Event

b.31 Window Object

It is a top-level object, not another object's property, the browser's window.

Property

Defaultstatus The default status bar message
Document that is currently displayed (the property itself is also an object)
A frame in the frame window ((frame>) (the property itself is also an object)
Frames array enumerates the arrays of frame objects for the window, listed in the order in which they appear in the document (the property itself is also an object)
The history list of the History window (the property itself is also an object)


Number of frames in length window
The full (absolute) URL of the document displayed in the Location window (the property itself is also an object) do not confuse it with a document.location, which is the URL of the currently displayed document. The user can change the window.location (replace the current document with another document), but cannot change the document.location (because this is where the document is currently displayed)
When the name window is open, give the name of the window
Opener represents the window where the script for the current window is opened with window.open (this is a new attribute introduced by Netscape Navigator 3.0beta 3)
Parent contains a synonym for the window for the current frame. A property of the frame and window objects
Self synonyms for the current window or frame
The message in the Status State bar
Top contains synonyms for the topmost browser window for the current frame
window or a synonym for the frame, same as self

Method

Alert () Opens an alert message box
Cleartimeout () Work to terminate the SetTimeout method
Close () Closes the window
Confirm () Opens a Confirm message box, the user can select OK or cancel, if the user clicks OK, the method returns True, click Cancel to return False
Blur () move focus away from the specified window (this is the new method introduced by Netscape Navigator 3.0 Beta 3)
Focus () Bring the specified window to the foreground (another new method)
Open () Opens a new window
Prompt () Opens a prompt dialog box that allows users to type text into the box and return typed text to the script
SetTimeout () waits a specified number of milliseconds, and then runs the instruction event handler

Event handlers

Onload () page loads when triggered
Onunload () trigger when page closes



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.