Firefox attachEvent and addEventListener issues with both
问题 So i've got 2 sets of js one with attach event and one with addEventListener attach event works perfectly in IE 8 as expected and addEventListener for IE 9. if i use addEventListener on firefox in jsfiddle it seems to work fine no issues in firefox but as soon as i deploy it and try to use it as intended it just doesn't work at all any input would be great.. IE 8 var formsCollection = document.getElementsByTagName("form"); var chain = ""; for(var i=0;i<formsCollection.length;i++) { // alert