Goal
When the user clicks an element (with class="menu"), the default action should not be executed. The user should be presented with a menu with options. When an option has been clicked, then the default action should be executed.
Problem
It's very problematic to stop the original click event in the first place, because it seems impossible to restore "default behavior" after that - is there a way to just delay the event until the user clicks a menu item?
Example
What i want to happen: Click a link. A menu is appended to the body. Click a menu option. The default behavior for the original click is now executed (which means triggering the click event of the originally clicked link and redirection to example.com).
jsFiddle
HTML, JS and CSS here: http://jsfiddle.net/arex1337/Tjwmx/
PS: If you want to know what I need the functionality for, here are some hastily and badly written thoughts about the application I have in mind: www. scribd.com /doc/39573220/MyJsApp