How to write a button with a link in html?
This question already has an answer here:
The simple answer: You can't.
You can use a link
tag using a
tag and add it href
attribute like this:
<a href="your_url">Click</a>
Or you can use javascript
like this:
<button onclick="location.href='http://google.com';">Click</button>
链接地址: http://www.djcxy.com/p/36564.html
上一篇: 如何让按钮使用户进入另一个页面?
下一篇: 如何写一个链接在HTML中的按钮?