I have an element with an onclick method.
I would like to activate that method (or: fake a click on this element) within another function.
I
I haven't used jQuery, but IIRC, the first method mentioned doesn't trigger the onclick handler.
onclick
I'd call the associated onclick method directly, if you're not using the event details.