Check box object
Attribute
The string value of the name NAME attribute.
The string value of the value Check box. If it is set, it is 'on'; otherwise, it is 'off '.
A boolean value of the checked check box. If it is set, it is true; otherwise, it is false.
DefaultChecked indicates the Boolean value of the (CHECKED) attribute (default state ).
Method
Click () to select the check box and set it to 'on '.
Event Processor
OnClick: it is executed when the user clicks Checkbox.
Radio button (radio) object
Attribute
The string value of the name NAME attribute.
The number of radio buttons in the length radio object.
The string value of the VALUE property.
Boolean value of checked. Press true. Otherwise, the value is false.
DefaultChecked indicates the Boolean value of the CHECKED attribute value.
Method
Click () Select a single button.
Event Processor
OnClick: scheduled to run when the single-choice button is selected.
Select object
Attribute
The number of objects in the length select object.
Name is the internal NAME of the select object defined by name = attribute.
The subscript of the currently selected option in the selectedIndex select object.
Options this attribute corresponds to the content marked when the select object is defined in HTML. It has the following attributes:
Text string marked by text.
Value of the VALUE Attribute. When the Submit button is pressed, the value is submitted.
DefaultSelected reflects the Boolean value of the marked SELECTED attribute.
The Boolean value that indicates the current selection status of the option.
Event Processor
OnFocus is executed when the input focus enters the domain.
OnBlur is executed when the domain loses the input focus.
OnChange: When the domain loses focus and the value of the domain changes compared to the onFocus execution, onChange is executed.
Button Object
There are three types of buttons in the table, which are defined by the TYPE attribute in the tag:
. Submit (type = 'submit ')
. Reset (type = 'reset ')
. Custom (type = 'button ')
All button objects have the following components:
Attribute
The string value of the VALUE property.
The string value of the name NAME attribute.
Method
Click () select button
Event Processor
OnClick: Execute when the button is clicked.
Submit and reset objects
Attribute
Value VALUE = attribute content.
Name NAME = attribute content.
Method
Click () select button
Event Processor
OnClick: Execute when the button is clicked.
Password object
Attribute
DefaultValue VALUE = attribute content.
Name NAME = attribute content.
Value currently enters data in the password field.
Method
Focus () brings the focus to the password field.
Blur removes the focus from the password field.
Select () select the current data in the password field for modification.
Navigator object: This object is used to determine the Navigator version used for user access.
Attribute
AppCodeName: 'codename' relative to the user's browser'
The actual name of the appName relative to the user's browser.
The version of appVersion relative to the user's browser.
UserAgent this attribute reflects all information about the user's browser.
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