
org.w3c.dom.html.HTMLFormElement Maven / Gradle / Ivy
// Copyright (c) 1998 by W3C
//
// DOM is a trademark of W3C
// The DOM level 1 specification, from which this
// source is derived, is copyright by W3C.
// See: http://www.w3.org/TR/REC-DOM-Level-1/
//
package org.w3c.dom.html;
import org.w3c.dom.*;
/**
The
FORM
element encompasses behavior similar to a collection and an element. It provides direct access to the contained input elements as well as the attributes of the form element. See the
FORM element definition
in HTML 4.0.
Property Summary
elements
getElements
Returns a collection of all control elements in the form.
length
getLength
The number of form controls in the form.
name
getName
setName
Names the form.
acceptCharset
getAcceptCharset
setAcceptCharset
List of character sets supported by the server. See the
accept-charset attribute definition
in HTML 4.0.
action
getAction
setAction
Server-side form handler. See the
action attribute definition
in HTML 4.0.
enctype
getEnctype
setEnctype
The content type of the submitted form, generally "application/x-www-form-urlencoded". See the
enctype attribute definition
in HTML 4.0.
method
getMethod
setMethod
HTTP method used to submit form. See the
method attribute definition
in HTML 4.0.
target
getTarget
setTarget
Frame to render the resource in. See the
target attribute definition
in HTML 4.0.
*/
public interface HTMLFormElement
extends HTMLElement
{
/**
* Returns the value of the elements
property.
*/
HTMLCollection getElements ();
/**
* Returns the value of the length
property.
*/
int getLength ();
/** Assigns the value of the name
property.
*/
void setName (String name);
/**
* Returns the value of the name
property.
*/
String getName ();
/** Assigns the value of the acceptCharset
property.
*/
void setAcceptCharset (String acceptCharset);
/**
* Returns the value of the acceptCharset
property.
*/
String getAcceptCharset ();
/** Assigns the value of the action
property.
*/
void setAction (String action);
/**
* Returns the value of the action
property.
*/
String getAction ();
/** Assigns the value of the enctype
property.
*/
void setEnctype (String enctype);
/**
* Returns the value of the enctype
property.
*/
String getEnctype ();
/** Assigns the value of the method
property.
*/
void setMethod (String method);
/**
* Returns the value of the method
property.
*/
String getMethod ();
/** Assigns the value of the target
property.
*/
void setTarget (String target);
/**
* Returns the value of the target
property.
*/
String getTarget ();
/**
Submits the form. It performs the same action as a submit button.
*/
void submit ();
/**
Restores a form element's default values. It performs the same action as a reset button.
*/
void reset ();
}