innerHTML and event delegation

Posted by Mark Gerrard on Stack Overflow See other posts from Stack Overflow or by Mark Gerrard
Published on 2010-05-07T13:29:35Z Indexed on 2010/05/07 13:38 UTC
Read the original article Hit count: 245

Hello,

I have a containing div that has multiple divs within which is updated every 25ms using innerHTML (for performance reasons). I have tried using event delegation to capture events but nothing I seem to do captures the click event. I think this may be due to the speed that the contents are getting updated. Any ideas would be very welcome.

Thanks

Mark

© Stack Overflow or respective owner

Related posts about javascript-events

Related posts about JavaScript