<input type=button value=buttononclick=javascrtpt:window.location.href='http://www.baidu.com/' />
Or use button tag directly
<button onclick=window.location.href = 'https://www.baidu.com/'>Baidu</button>Method 2: Coat an a tag with the button tag
<a href=http://www.baidu.com/> <button>Baidu</button></a>
or use
<a href=http://www.baidu.com/><input type=button value='Baidu'></a>Method 3: Use JavaScript functions
<script>function jump(){ window.location.href=http://www.baidu.com/;}</script><input type=button value=Baidu onclick=javascrtpt:jump() />// or <input type=button value=Baidu onclick=jump() />// or <button onclick=jump()>Baidu</button> SummarizeThe above are the three ways that the editor introduces to you how to click the button tag in HTML to achieve page jump. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for your support of the VeVb martial arts website!
If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!