search

Home  >  Q&A  >  body text

Can JS exchange onclick events of 2 DOMs?

It’s not my own website, I made a browser. Some operations need to be hooked. Not very familiar with JS. Is it possible to exchange the click events of two elements? Baidu binds when all the function names are known. If it is unknown, how to get the click event function name of the element?

曾经蜡笔没有小新曾经蜡笔没有小新2750 days ago564

reply all(2)I'll reply

  • 仅有的幸福

    仅有的幸福2017-06-10 09:49:39

    Find the element, exchange event function, the function name does not exist

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-06-10 09:49:39

    If jq does not need to be exchanged, directly trigger the click method of another element

    reply
    0
  • Cancelreply