html按钮button怎么加超链接

1.如果让本页转向新的页面则用:
<input type=button onclick="window.location.href('连接')">
ex:
<td><div align="center">     
        <input type="submit" name="Submit" value="输入完毕提交" onclick="window.location.href='DeptManager.html';">     
          </div>
   </td>

2.如果需要打开一个新的页面进行转向,则用:
<input type=button onclick="window.open('连接')">
posted @ 2008-01-10 14:02  Salesforce  阅读(8982)  评论(0编辑  收藏  举报