Best to try removing those at dom:loaded, maybe with something like
this:
document.observe('dom:loaded',function(){
$$(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.
Walter
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 & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---