document.getElementsByName("submitform")[0].type = "button";
用jQuery做:
$("input[name='submitform']").prop("type","button");
但请记住,您无法在Internet Explorer 8及更低版本中更改输入类型.