码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2015-04-09 11:51:42      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:

比较完整的写法:
<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(‘连接‘)">

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

标签:

原文地址:http://www.cnblogs.com/love-family/p/4409204.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!