Any one have any idea why this doesn't work as expected? Just fires alerts on page load.
var div = document.querySelectorAll('.div'); // NodeList of all instances of '.div'
var eventFunction = function() {
alert('ggdf');
};
for(var i = 0; i < div.length; i++) { // Begin '.div' NodeList loop
div[i].addEventListener('click', eventFunction(), false); // Click function on all instances of '.div'
} // End '.div' NodeList loop