Best to try removing those at dom:loaded, maybe with something like  

        $$(a).each(function(elm){elm.onclick = null});

That's just a guess...

But as far as I know, you can't stop these inline event handlers any  
other way.


On Aug 4, 2009, at 6:21 PM, Hipnotik wrote:

> Hi
> I have observer set for the whole document to catch click events on
> links (a href) and prevent default action (open page from href,
> event.stop). It works correct, but ... now I have onclick event
> defined inside of each a-herf element and I need to catch/prevent this
> event too. How to do that? I'm hope it's quite clear ;)
> >

You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to