[removed] Adding an onClick handler without overwriting the existing one

前端 未结 7 1175
说谎
说谎 2020-12-14 02:54

I\'m trying to modify all links on a page so they perform some additional work when they are clicked.

A trivial approach might be something like this:



        
7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-14 03:27

    I had problems with overloading in the simple way - this page was a great resource http://www.quirksmode.org/js/events_advanced.html

提交回复
热议问题