MDN self-hosted library · e01.org

HTMLFormElement: action property

HTML DOM

Open notebook · 1 cells web-api-instance-property upstream source

HTML DOM

The HTMLFormElement.action property represents the action of the form element.

The action of a form is the program that is executed on the server when the form is submitted. This property can be retrieved or set.

Value

A string.

Examples

form.action = "/cgi-bin/publish";

Specifications

Browser compatibility