Methods and Properties of the Password Object : Password « Form Control « JavaScript DHTML






Methods and Properties of the Password Object

 

Method
blur()            Removes focus from the password box.
focus()           Sets focus to the password box.
handleEvent()     Invokes the default handler for the specified event.
select()          Selects the text entered in the password box.

Property

defaultValue      Refers to the value attribute of the HTML password box.
form              Refers to the form that contains the password box.
name              Refers to the name attribute of the HTML password box.
type              Refers to the type attribute of the HTML password box.
value             Refers to the current contents of the password box.
           
         
  








Related examples in the same category

1.Password field size
2.Get text input max Length
3.Password Protecting a Page
4.Demonstrates password field and hiden field