what do I need to change to make this work in Firefox?


Code JavaScript:
	var submitArray = document.getElementsByTagName('input');
for(var i=0;i<submitArray.length;i++){
	alert(submitArray[i].attributes('type').value);
}