摘要:
if(!document.all){ document.all = function(id) { var all = document.getElementsByTagName("*"); var results = new Array(); for(var i = 0; i < all.length; i++) { if(all[i].id == id) { results.push(all[i]); } } return results; }} var b = document.all("a");alert(b.length);firefox下 阅读全文