action Attributeaction AttributeThe action attribute is a #REQUIRED attribute which specifies the
URI of the processing agent to which
form data will be sent
on submission. Relative URIs are resolved with respect to the base URI of the document
(see the base element). User agent
behaviour for a value other than a URI is undefined (see - for HTML4 -
*HTML 4 - The FORM element).
In most circumstances, if the action attribute is given an empty string "" as its value,
the form is submitted to the URI of the document containing the form. However:
Caveat: Do not use a blank action attribute
when the base URI for the document is different to the URI of the document itself (e.g. it has been
set to a different location using the base element).
If this is the case, some user agents will send forms with a blank action
attribute to the URI of the document itself and some will send them to the explicit base URI instead.
Of the three browsers I currently have installed on my linux box, two do the former
(Firefox 2 and Opera 9) and one does the latter (Konqueror 3.5.4).