\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=90pt]{classDOM_1_1HTMLFormElement__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for DOM::HTMLForm\-Element:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=90pt]{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 
\begin{CompactList}\small\item\em Returns a collection of all control elements in the form. \item\end{CompactList}\item 
long {\bf length} () const 
\begin{CompactList}\small\item\em The number of form controls in the form. \item\end{CompactList}\item 
{\bf DOMString} {\bf name} () const 
\begin{CompactList}\small\item\em Names the form. \item\end{CompactList}\item 
void {\bf set\-Name} (const  {\bf DOMString} \&)
\begin{CompactList}\small\item\em see {\bf name}{\rm (p.\,\pageref{classDOM_1_1HTMLFormElement_a8})} \item\end{CompactList}\item 
{\bf DOMString} {\bf accept\-Charset} () const 
\begin{CompactList}\small\item\em List of character sets supported by the server. \item\end{CompactList}\item 
void {\bf set\-Accept\-Charset} (const  {\bf DOMString} \&)
\begin{CompactList}\small\item\em see {\bf accept\-Charset}{\rm (p.\,\pageref{classDOM_1_1HTMLFormElement_a10})} \item\end{CompactList}\item 
{\bf DOMString} {\bf action} () const 
\begin{CompactList}\small\item\em Server-side form handler. \item\end{CompactList}\item 
void {\bf set\-Action} (const  {\bf DOMString} \&)
\begin{CompactList}\small\item\em see {\bf action}{\rm (p.\,\pageref{classDOM_1_1HTMLFormElement_a12})} \item\end{CompactList}\item 
{\bf DOMString} {\bf enctype} () const 
\begin{CompactList}\small\item\em The content type of the submitted form, generally \char`\"{}application/x-www-form-urlencoded\char`\"{}. \item\end{CompactList}\item 
void {\bf set\-Enctype} (const  {\bf DOMString} \&)
\begin{CompactList}\small\item\em see {\bf enctype}{\rm (p.\,\pageref{classDOM_1_1HTMLFormElement_a14})} \item\end{CompactList}\item 
{\bf DOMString} {\bf method} () const 
\begin{CompactList}\small\item\em HTTP method used to submit form. \item\end{CompactList}\item 
void {\bf set\-Method} (const  {\bf DOMString} \&)
\begin{CompactList}\small\item\em see {\bf method}{\rm (p.\,\pageref{classDOM_1_1HTMLFormElement_a16})} \item\end{CompactList}\item 
{\bf DOMString} {\bf target} () const 
\begin{CompactList}\small\item\em Frame to render the resource in. \item\end{CompactList}\item 
void {\bf set\-Target} (const  {\bf DOMString} \&)
\begin{CompactList}\small\item\em see {\bf target}{\rm (p.\,\pageref{classDOM_1_1HTMLFormElement_a18})} \item\end{CompactList}\item 
void {\bf submit} ()
\begin{CompactList}\small\item\em Submits the form. \item\end{CompactList}\item 
void {\bf reset} ()
\begin{CompactList}\small\item\em Restores a form element's default values. \item\end{CompactList}\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 193 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 199 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 205 of file html\_\-form.cpp.\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 211 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 {\bf name}{\rm (p.\,\pageref{classDOM_1_1HTMLFormElement_a8})} 



Definition at line 217 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 222 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 {\bf accept\-Charset}{\rm (p.\,\pageref{classDOM_1_1HTMLFormElement_a10})} 



Definition at line 228 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 233 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 {\bf action}{\rm (p.\,\pageref{classDOM_1_1HTMLFormElement_a12})} 



Definition at line 239 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 244 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 {\bf enctype}{\rm (p.\,\pageref{classDOM_1_1HTMLFormElement_a14})} 



Definition at line 250 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 255 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 {\bf method}{\rm (p.\,\pageref{classDOM_1_1HTMLFormElement_a16})} 



Definition at line 261 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 266 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 {\bf target}{\rm (p.\,\pageref{classDOM_1_1HTMLFormElement_a18})} 



Definition at line 272 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 277 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 282 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}
