\section{DOM::HTMLForm\-Element Class Reference}
\label{classDOM_1_1HTMLFormElement}\index{DOM::HTMLFormElement@{DOM::HTMLFormElement}}
The {\tt FORM} element encompasses behavior similar to a collection and an element.  


{\tt \#include $<$html\_\-form.h$>$}

Inheritance diagram for DOM::HTMLForm\-Element:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=84pt]{classDOM_1_1HTMLFormElement__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for DOM::HTMLForm\-Element:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=84pt]{classDOM_1_1HTMLFormElement__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf HTMLForm\-Element} (const {\bf HTMLForm\-Element} \&other)\label{classDOM_1_1HTMLFormElement_a1}

\item 
{\bf HTMLForm\-Element} (const {\bf Node} \&other)\label{classDOM_1_1HTMLFormElement_a2}

\item 
{\bf HTMLForm\-Element} \& {\bf operator=} (const {\bf HTMLForm\-Element} \&other)\label{classDOM_1_1HTMLFormElement_a3}

\item 
{\bf HTMLForm\-Element} \& {\bf operator=} (const {\bf Node} \&other)\label{classDOM_1_1HTMLFormElement_a4}

\item 
{\bf HTMLCollection} {\bf elements} () const 
\item 
long {\bf length} () const 
\item 
{\bf DOMString} {\bf name} () const 
\item 
void {\bf set\-Name} (const {\bf DOMString} \&)
\item 
{\bf DOMString} {\bf accept\-Charset} () const 
\item 
void {\bf set\-Accept\-Charset} (const {\bf DOMString} \&)
\item 
{\bf DOMString} {\bf action} () const 
\item 
void {\bf set\-Action} (const {\bf DOMString} \&)
\item 
{\bf DOMString} {\bf enctype} () const 
\item 
void {\bf set\-Enctype} (const {\bf DOMString} \&)
\item 
{\bf DOMString} {\bf method} () const 
\item 
void {\bf set\-Method} (const {\bf DOMString} \&)
\item 
{\bf DOMString} {\bf target} () const 
\item 
void {\bf set\-Target} (const {\bf DOMString} \&)
\item 
void {\bf submit} ()
\item 
void {\bf reset} ()
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
{\bf HTMLForm\-Element} (HTMLForm\-Element\-Impl $\ast$impl)\label{classDOM_1_1HTMLFormElement_b0}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf HTMLButton\-Element}\label{classDOM_1_1HTMLFormElement_n0}

\item 
class {\bf HTMLField\-Set\-Element}\label{classDOM_1_1HTMLFormElement_n1}

\item 
class {\bf HTMLInput\-Element}\label{classDOM_1_1HTMLFormElement_n2}

\item 
class {\bf HTMLLabel\-Element}\label{classDOM_1_1HTMLFormElement_n3}

\item 
class {\bf HTMLLegend\-Element}\label{classDOM_1_1HTMLFormElement_n4}

\item 
class {\bf HTMLSelect\-Element}\label{classDOM_1_1HTMLFormElement_n5}

\item 
class {\bf HTMLText\-Area\-Element}\label{classDOM_1_1HTMLFormElement_n6}

\item 
class {\bf HTMLOption\-Element}\label{classDOM_1_1HTMLFormElement_n7}

\item 
class {\bf HTMLIs\-Index\-Element}\label{classDOM_1_1HTMLFormElement_n8}

\item 
class {\bf HTMLObject\-Element}\label{classDOM_1_1HTMLFormElement_n9}

\end{CompactItemize}


\subsection{Detailed Description}
The {\tt 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 {\tt FORM element definition } in HTML 4.0. 



Definition at line 194 of file html\_\-form.h.

\subsection{Member Function Documentation}
\index{DOM::HTMLFormElement@{DOM::HTMLForm\-Element}!elements@{elements}}
\index{elements@{elements}!DOM::HTMLFormElement@{DOM::HTMLForm\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf HTMLCollection} HTMLForm\-Element::elements () const}\label{classDOM_1_1HTMLFormElement_a6}


Returns a collection of all control elements in the form. 



Definition at line 198 of file html\_\-form.cpp.\index{DOM::HTMLFormElement@{DOM::HTMLForm\-Element}!length@{length}}
\index{length@{length}!DOM::HTMLFormElement@{DOM::HTMLForm\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}long HTMLForm\-Element::length () const}\label{classDOM_1_1HTMLFormElement_a7}


The number of form controls in the form. 



Definition at line 204 of file html\_\-form.cpp.

References DOM::HTMLCollection::length().\index{DOM::HTMLFormElement@{DOM::HTMLForm\-Element}!name@{name}}
\index{name@{name}!DOM::HTMLFormElement@{DOM::HTMLForm\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} HTMLForm\-Element::name () const}\label{classDOM_1_1HTMLFormElement_a8}


Names the form. 



Definition at line 210 of file html\_\-form.cpp.\index{DOM::HTMLFormElement@{DOM::HTMLForm\-Element}!setName@{setName}}
\index{setName@{setName}!DOM::HTMLFormElement@{DOM::HTMLForm\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLForm\-Element::set\-Name (const {\bf DOMString} \&)}\label{classDOM_1_1HTMLFormElement_a9}


see name 



Definition at line 216 of file html\_\-form.cpp.\index{DOM::HTMLFormElement@{DOM::HTMLForm\-Element}!acceptCharset@{acceptCharset}}
\index{acceptCharset@{acceptCharset}!DOM::HTMLFormElement@{DOM::HTMLForm\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} HTMLForm\-Element::accept\-Charset () const}\label{classDOM_1_1HTMLFormElement_a10}


List of character sets supported by the server. 

See the {\tt accept-charset attribute definition } in HTML 4.0. 

Definition at line 221 of file html\_\-form.cpp.\index{DOM::HTMLFormElement@{DOM::HTMLForm\-Element}!setAcceptCharset@{setAcceptCharset}}
\index{setAcceptCharset@{setAcceptCharset}!DOM::HTMLFormElement@{DOM::HTMLForm\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLForm\-Element::set\-Accept\-Charset (const {\bf DOMString} \&)}\label{classDOM_1_1HTMLFormElement_a11}


see accept\-Charset 



Definition at line 227 of file html\_\-form.cpp.\index{DOM::HTMLFormElement@{DOM::HTMLForm\-Element}!action@{action}}
\index{action@{action}!DOM::HTMLFormElement@{DOM::HTMLForm\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} HTMLForm\-Element::action () const}\label{classDOM_1_1HTMLFormElement_a12}


Server-side form handler. 

See the {\tt action attribute definition } in HTML 4.0. 

Definition at line 232 of file html\_\-form.cpp.\index{DOM::HTMLFormElement@{DOM::HTMLForm\-Element}!setAction@{setAction}}
\index{setAction@{setAction}!DOM::HTMLFormElement@{DOM::HTMLForm\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLForm\-Element::set\-Action (const {\bf DOMString} \&)}\label{classDOM_1_1HTMLFormElement_a13}


see action 



Definition at line 238 of file html\_\-form.cpp.\index{DOM::HTMLFormElement@{DOM::HTMLForm\-Element}!enctype@{enctype}}
\index{enctype@{enctype}!DOM::HTMLFormElement@{DOM::HTMLForm\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} HTMLForm\-Element::enctype () const}\label{classDOM_1_1HTMLFormElement_a14}


The content type of the submitted form, generally \char`\"{}application/x-www-form-urlencoded\char`\"{}. 

See the {\tt enctype attribute definition } in HTML 4.0. 

Definition at line 243 of file html\_\-form.cpp.\index{DOM::HTMLFormElement@{DOM::HTMLForm\-Element}!setEnctype@{setEnctype}}
\index{setEnctype@{setEnctype}!DOM::HTMLFormElement@{DOM::HTMLForm\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLForm\-Element::set\-Enctype (const {\bf DOMString} \&)}\label{classDOM_1_1HTMLFormElement_a15}


see enctype 



Definition at line 249 of file html\_\-form.cpp.\index{DOM::HTMLFormElement@{DOM::HTMLForm\-Element}!method@{method}}
\index{method@{method}!DOM::HTMLFormElement@{DOM::HTMLForm\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} HTMLForm\-Element::method () const}\label{classDOM_1_1HTMLFormElement_a16}


HTTP method used to submit form. 

See the {\tt method attribute definition } in HTML 4.0. 

Definition at line 254 of file html\_\-form.cpp.\index{DOM::HTMLFormElement@{DOM::HTMLForm\-Element}!setMethod@{setMethod}}
\index{setMethod@{setMethod}!DOM::HTMLFormElement@{DOM::HTMLForm\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLForm\-Element::set\-Method (const {\bf DOMString} \&)}\label{classDOM_1_1HTMLFormElement_a17}


see method 



Definition at line 260 of file html\_\-form.cpp.\index{DOM::HTMLFormElement@{DOM::HTMLForm\-Element}!target@{target}}
\index{target@{target}!DOM::HTMLFormElement@{DOM::HTMLForm\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} HTMLForm\-Element::target () const}\label{classDOM_1_1HTMLFormElement_a18}


Frame to render the resource in. 

See the {\tt target attribute definition } in HTML 4.0. 

Definition at line 265 of file html\_\-form.cpp.\index{DOM::HTMLFormElement@{DOM::HTMLForm\-Element}!setTarget@{setTarget}}
\index{setTarget@{setTarget}!DOM::HTMLFormElement@{DOM::HTMLForm\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLForm\-Element::set\-Target (const {\bf DOMString} \&)}\label{classDOM_1_1HTMLFormElement_a19}


see target 



Definition at line 271 of file html\_\-form.cpp.\index{DOM::HTMLFormElement@{DOM::HTMLForm\-Element}!submit@{submit}}
\index{submit@{submit}!DOM::HTMLFormElement@{DOM::HTMLForm\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLForm\-Element::submit ()}\label{classDOM_1_1HTMLFormElement_a20}


Submits the form. 

It performs the same action as a submit button. 

Definition at line 276 of file html\_\-form.cpp.\index{DOM::HTMLFormElement@{DOM::HTMLForm\-Element}!reset@{reset}}
\index{reset@{reset}!DOM::HTMLFormElement@{DOM::HTMLForm\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLForm\-Element::reset ()}\label{classDOM_1_1HTMLFormElement_a21}


Restores a form element's default values. 

It performs the same action as a reset button. 

Definition at line 281 of file html\_\-form.cpp.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
html\_\-form.h\item 
html\_\-form.cpp\end{CompactItemize}
