这个方法在ff中也是不兼容的,所以你需要替换,建议为  document.Form1.getElementById() 后者ByName 都可以,还可以 document.Form1.elements["name"];