Thursday, April 4, 2013

Javascript Form Objects attributes and Methods


Form Object Properties
acceptCharset Sets or returns a list of possible character-sets for the form data
Action Sets or returns the action attribute of a form
Enctype Sets or returns the MIME type used to encode the content of a form
Id Sets or returns the id of a form
Length Returns the number of elements in a form
Method Sets or returns the HTTP method for sending data to the server
Name Sets or returns the name of a form
Target Sets or returns where to open the action-URL in a form

Form Object Methods
reset() Resets the values of all elements in a form
submit() Submits a form

No comments:

Post a Comment