How to pass an event object to a function in Javascript?

前端 未结 3 989
梦毁少年i
梦毁少年i 2020-12-07 21:44
3条回答
  •  清歌不尽
    2020-12-07 22:25

    Although this is the accepted answer, toto_tico's answer below is better :)

    Try making the onclick js use 'return' to ensure the desired return value gets used...

提交回复
热议问题