So I have an element that has an onClick event thusly:
var foobar = $('element').addEvent('click', function() {
// some code here
});
But I want to call the action from somewhere else in the script, would it be possible to do such a thing, i.e."
foobar.click
?