Is there a way to get a <button> element to link to a location without wrapping it in an <a

后端 未结 8 1987
礼貌的吻别
礼貌的吻别 2020-12-02 06:49

Just wondering if there is a way to get a HTML

8条回答
  •  温柔的废话
    2020-12-02 07:31

    Here's a solution which will work even when JavaScript is disabled:

    The trick is to surround the button with its own

    tag.

    I personally prefer the

提交回复
热议问题