HTMLFormElement.action
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
HTMLFormElement.action
这个 js 语句能够定义一个<form>
元素中的 action 属性
表单的 action 属性是在服务器上提交表单,这个属性可以被检索或者设置。
语法
string = form.action form.action = string
例子
form.action = "/cgi-bin/publish";