It's very simple to do for some html object as ancestor, but not for
whole body.

What I'm doing wrong?

$(document.body).observe('focus', function(e) {
        if (!(elem = e.findElement('a')))

The main aim is to avoid effect of "wrapping the link", when clicking
on it.

This code works fine:

$$('a').invoke('observe', 'focus', linkBlur);
function linkBlur(e) {
        elem = e.element();
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 [EMAIL PROTECTED]
For more options, visit this group at

Reply via email to