作者:惬听风吟jyy_802 | 2023-09-10 20:47
1> prieston..:
您可以使用onsubmit
attribute并在函数内设置操作,例如:
function yourFunction(){
var action_src = "http://localhost/test/" + document.getElementsByName("keywords")[0].value;
var your_form = document.getElementById('your_form');
your_form.action = action_src ;
}