Form JavaScript Tutorial

Instances are created by the browser when it encounters an HTML tag.
In the JavaScript object hierarchy, the Textarea object is located at window.document.Form.Textarea.
Event Handlers/Methods/PropertiesDescription
onBlurCalled when the text area loses the focus.
onChangeCalled when the text area loses the focus and has had its value modified.
onFocusCalled when the text area receives the focus.
onKeyDownCalled when a key is pressed down. This occurs before an onKeyPress event handler is triggered.
onKeyPressCalled when a key is pressed down immediately after an onKeyDown event handler is triggered.
onKeyUpCalled when a key is released.
onSelectCalled when a user selects some of the text within the text area.
blur()Removes the focus from the text area.
focus()Gives the focus to the text area.
handleEvent()Invokes the handler for the event specified.
select()Selects the text in the text area.
defaultValueReturns the value of this text area defined between the beginning and ending tags. Note that this property is not supported by the Opera browsers.
formReturns the entire form the text area is in.
nameReturns the name of this text area specified by the NAME attribute.
typeReturns the type of this text area. Note that this is always textarea.
valueReturns the value that is actually displayed in the text area.


    
    
    
    
    
    
    
      
      Here is some text in my text area.