In the code HTML+Script below,
- an event handler is attached after page load using setAttribute(...).
- The event hander is passed an argument which is read dynamically too.
- the event hander is attached successfully ( verified by a getAttribute(...)
However, the handler does not fire.
What is wrong with the snippet below?