I would like to remove ALL handlers for a given event type. Let\'s say I\'ve added twice \"onclick event\" to a button and now I would like to return back to the original st
It might be a good idea to use jQuery or a similar framework to manage all event handlers.
This will give you easy-to-use, unobtrusive functions to add and remove event handlers:
$(...).on('click', function() { ... });
$(...).off('click');
// or, to unbind all events:
$(...).off();