HTML5: Button link is not working
This question already has an answer here:
You are creating a button with a href
and a
attribute, not an a
element. If you want your button to act as a link to https://.../#dos
, try this instead:
<button onclick="location.hash='dos'">Go to /#dos</button>
链接地址: http://www.djcxy.com/p/36574.html
上一篇: 如何制作一个打开html页面的按钮?
下一篇: HTML5:按钮链接不起作用