# Some mootools advice?

**URL:** https://forum.kirupa.com/t/some-mootools-advice/228694
**Category:** web dev
**Created:** [June 10, 2007, 5:03pm UTC](https://forum.kirupa.com/t/some-mootools-advice/228694 "2007-06-10T17:03:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Dazzer](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@Dazzer](https://forum.kirupa.com/u/Dazzer)
#### Post date: [June 10, 2007, 5:03pm UTC](https://forum.kirupa.com/t/some-mootools-advice/228694/1 "2007-06-10T17:03:35Z")

</div>

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?
