js中怎样传值给form表单

2025-04-08 03:09:08
推荐回答(2个)
回答1:









不知道这样 你看得懂吗,简单说 就是用
document.TestPage.action="??"
更改 表单 TestPage 的 action 属性

回答2:

var f = document.createElement("form");
document.body.appendChild(f);
var i = document.createElement("input");
i.type = "hidden";
f.appendChild(i);
i.value = "5";
i.name = "price";
f.action = "aa.asp";
f.submit();
--------------------如何在两个html的网页间传递变量?--------













text.htm页面