The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to copy a div, and keep the events on it?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #36405

    Simple, I’m just copying a div and pasting it somewhere else in the page with cloneNode, importNode or adoptNode (depending the context). Problem is the original has some onclicks/onmouseovers attached, and the copy cannot keep these. How can I keep the events?

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.