Alex wrote:
I wonder, how in Xbrowser way can I make a difference between a normal
user click and a programmatic triggered click? Is it possible?

Thank you!


A real click provides an clientX property on the event object, so:

$('a').bind('click', function(e) {
    if (e.clientX) {
        alert('Real click');
    } else {
        alert('Triggered click');
    }
});

Maybe there is a more proper solution, but I'm using that for Tabs and it works fine.


-- Klaus

Reply via email to