Javascript[object. Properties] Highlights of the second

Source: Internet
Author: User
Tags object relative reset string version domain
javascript| objects

check box (CheckBox) object

Property

The string value of the name Name property.

The string value of the contents of the Value check box. On if set, or off.

Boolean value for the contents of the Checked check box. True if set, or false.

defaultchecked reflect (CHECKED) The Boolean value of the property (the default state).

Method

Click () to select the check box and make it state "on".

Event handlers

OnClick executes when the user clicks the checkbox.

Radio button (radio) object

Property

The string value of the name Name property.

Length radio The number of radio buttons in the object.

The string value of the value Value property.

Checked Boolean value, press True, otherwise false.

Defaultchecked A Boolean value that reflects the value of the checked property.

Method

Click () Select the Order button.

Event handlers

OnClick executes when the radio button is selected.

Select Object

Property

The number of objects in the length select object.

Name is the internal name of the select object defined by the Name= property.

SelectedIndex the subscript of the currently selected option in the Select object.

Options This property corresponds to the contents of the tag when you define a Select object in HTML, and it has the following properties:

Text string that is marked with text.

Values of the value Value property, which is committed when the submit button is pressed.

Defaultselected A Boolean value that reflects the selected property of the tag.

Selected a Boolean value that reflects the current selection state of option.

Event handlers

Onfocus executes when the input focus is entered into the domain.

OnBlur is executed when the field loses input focus.

OnChange executes onChange when the domain loses focus and if the value of the domain changes relative to onfocus execution.

Button Object


There are three types of buttons in the grid defined by the type attribute in the tag:

. Submit (Type= "Submit")

. Reset (type= "reset")

. Custom (type= "button")

All button objects have the following ingredients:

Property

The string value of the value Value property.

The string value of the name Name property.

Method

Click () Select button

Event handlers

OnClick executes when the button is clicked.

Submit and Reset Objects

Property

The contents of the Value value= property.

The contents of the name Name= property.

Method

Click () Select button

Event handlers

OnClick executes when the button is clicked.

Password objects

Property

DefaultValue the contents of the Value= property.

The contents of the name Name= property.

Value currently enters the data for the password field.

Method

Focus () takes you to the password field.

Blur removes the focus from the password domain.

Select () selects the current data in the Password field for modification.

Navigator Objects

This object is used to determine the navigator version that is used when the user accesses.

Property

appCodeName "codename" relative to the user's browser

AppName the actual name relative to the user's browser.

AppVersion The version number relative to the user's browser.

UserAgent This property reflects all the information in the user's browser.



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.