标签: javascript internet-explorer firefox getelementbyid
我如何获得nodeName?
if(system.ie) { var oDiv = document.all[id]; var link = oDiv.all.item(position); console.log(link.nodeName); } else { var oDiv = document.getElementById(id); ??? }
for firefox