document.getElementsByName(name). 该方法与getElementById() 方法相似, 但是它查询元素的name 属性,而不是id ...
www.w3school.com.cn