Home  >  Article  >  Web Front-end  >  How to add a hyperlink to the input button in html_html/css_WEB-ITnose

How to add a hyperlink to the input button in html_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:46:342955browse

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn