How to set method of a html form using javascript or js?

It can be done as follows :

document.forms["Form_Name"].method= "get";
or
document.forms["Form_Name"].method= "post";

Leave a Reply