In Chrome and Internet Explorer, not Firefox, however, disconnecting and reconnecting an element in mousedown or mouseup will prevent the click event from firing. In Internet Explorer, this trick does not double-click, though (in Chrome it does).
But I would not rely on this strange behavior, who knows if he will change at some point. In addition, be careful that detaching and reconnecting can also have side effects for children of the element being separated (reloading iframes, file fields reset, ...).
Louis ameline
source share