如何更改Form的method属性

[code="js"] if(method=="GET"){alert("GET");document.getElementById("myForm").method="GET";}
else if(method=="POST"){alert("POST");document.getElementById("myForm").method="POST";}[/code]

我的一个FORM的id是myForm,我是否有办法用js更改myForm的method属性?

form.method [ =sMethod ]
sMethod String that specifies one of the following values:
get Append the arguments to the action URL and open it as if it were an anchor.
post Send the data through an HTTP post transaction.

The property is read/write with no default value.

可读写的,get/post

倒是enctype那个比较搞,html是enctype,js里是encoding

试一下不就知道了..