getElementById,getElementsByTagName,getElementsByName的区别
疯子的紫梦
posted @ 2009年5月04日 00:50
in JavaScript
, 1137 阅读
getElementById:通过ID控制某个TAG(标签)
getElementsByTagName:取得一组相同TAG的元素集合
getElementsByName:取得相同具有相同Name属性的TAG
getElementById取得的是一个,所以后面没有加S
getElementsByTagName getElementsByName 就有两个S了 他们取得的东西不上一个
2023年9月25日 13:51
Maha Board High School Students Summers Holidays Don’t Waste Time 8th Standard Pursuing Students can Download the Textbooks and take the hard copy for further use, we will update the Latest Information on this page. Maharashtra e-Books 2024 Latest Version to be Upload Every Year in Online Mode.Maharashtra Board High School Textbooks 2024 are Very Important to Students on the Maha Board 8th Class Books 2024 Preparations of the Monthly and Final Examination. Here, we are Providing the Latest Edition of MH Class Book 2024 which is Published by the Balbharati. All the chapters can be Downloaded in form of PDFs.Maharashtra High School Students Follows.