Thank you Diego A. and Juha Suni, your suggestions work very well :) I wasn't aware that it is possible to get such interesting things out of an event (.target). Now it is much faster and works better. After a few tests on different machines/ OSes/Browsers, this will be online.
Best Regards, Alessandro On Apr 24, 4:02 pm, "Diego A." <[EMAIL PROTECTED]> wrote: > I think this is possible (never done it myself). > 1. Bind a single click event to the entire document. > 2. use event.target (sourceElement) to access the element that > triggered the event. > 3. Check if its one of your # links > 4. do your magic. On Apr 24, 2:09 pm, "Juha Suni" <[EMAIL PROTECTED]> wrote: > Bind the click element to the body, and let event delegation / bubbling do > its job. This way you have only one event listener. The function it runs can > then check the clicked element against a jQuery filter with .is() and run > stuff if necessary.