您的位置:首页 > Web前端 > HTML

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

2016-11-17 15:09 253 查看

比较完整的写法:

<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('连接')">
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: