比較完整的寫法:
<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('連接')">
比較完整的寫法:
<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('連接')">
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。