html中input按钮怎么添加超链接

比较完整的写法:
<a href="链接">
  <input type=button onclick="window.location.href('连接')">
</a> 

注:1.若直接在本页跳转到新的页面,则用: <input type=button onclick="window.location.href('连接')">
  2.如果需要打开一个新的页面进行跳转,则用: <input type=button onclick="window.open('连接')">
posted @ 2015-04-09 11:35  love_family  阅读(47543)  评论(5编辑  收藏  举报