Been playing around with MooTools.
From the tutorials I’ve found, I read that to give functionality to a div, I should use the addEvent(‘click’, function(){}); method. However, I found the same could be done using
<a href=‘javascript:myspecificfunction(arg)’>Text</a>
And with the first method (using addEvent) I simply don’t see any way of actually passing any arguments to the function. So is that a bad way? Or perhaps, maybe addEvent is more for rollOvers and the sort?
Any gurus?