inline javascript in href

后端 未结 4 1380
猫巷女王i
猫巷女王i 2021-02-05 11:03

How can you do something like this:

myLink

And have the js

4条回答
  •  后悔当初
    2021-02-05 11:34

    Just put the JS code directly in there:

    fsljk
    

    Though, you should not be doing inline scripting. You should unobtrusively attach event handlers.

    fdsj
    
    

提交回复
热议问题