我有这段代码,假设它是a.html//1:startdocument.frmSubmit.action='b.html';document.frmSubmit.submit();//1:end//2:startdocument.getElementById("frmSubmit").action='b.html';document.getElementById("frmSubmit").submit();//2:end1和2都可以在IE(IE8)中工作,但不能在FF(3.6.10)中工作。Firebug给我以下错误:document.frmSubmitisundefined我该如何解决