Thursday 24 November 2011

Form Object And Elements


 

Form Element

Description

Property

Event Handled

Text
For the text
Name, value, default value
onFocus(), onBlur(), onSelect(), onChange()
Password
Password textbox
Name, Value, DefaultValue
onFocus(), onBlur(), onSelect(), onChange()
Textarea
Multiline textbox
Name, Value, DefaultValue
onFocus(), onBlur(), onSelect(), onChange()
Checkbox
For the checkbox where at a time many selection can be made.
Name, Value, Checked, DefaultChecked
onClick()
Radio
For option button where at a time only one selection is made
Name, value, checked, DefaultChecked, length, index
onClick()
Submit
For button click
Name, value
onClick()
Reset
For cancle button click
Name, value
Onclick()
Select
For drop down element
Name, value, SelectedIndex, text, selected
Onchange()

Posted By : Hemangi Zala

No comments:

Post a Comment