[removed]void(0) or onclick=“return false” for - which is better?

前端 未结 2 1509
Happy的楠姐
Happy的楠姐 2021-01-04 07:35

There is a javascript-based interface - so I need not to support work without javascript.

I have an

Something

e

2条回答
  •  执笔经年
    2021-01-04 08:16

    Both are poor choices. Presentation shouldn't mix with content. That means no javascript: URIs, and definitely no onclick attributes.

    The way to do it:

    Something
    

提交回复
热议问题