I have few anchors with a click event:
$$('.someanchor').invoke('observe', 'click', somefunction );
When the anchor is clicked, the browser scrolls to top.
I tried to insert return false at the end of somefunction, but it still scrolls up.
Usually I would use something like:
Event.observe('somelement', 'click', somefunction, false);
But this doesnt work for a collection of elements. So how do I return false from a invoke statement?