📌  相关文章
📜  如何通过 JavaScript 设置表单操作? - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:08.837000             🧑  作者: Mango

代码示例1
//Set your form action
document.getElementById('myFormId').action="./myPage.myLanguage"

//display on console your form action
connsole.log(document.getElementById('myFormId').action)

//retrive the action from a selected Form
document.getElementById('myFormId').action