<a href="https://www.baidu.com/" target="_blank"> <button>เข้าสู่หน้าแรกของ baidu</button> </a>
<button onclick="window.location.href = 'https://www.baidu.com/' target="_blank"">เข้าสู่หน้าแรกของ Baidu</button>
<meta http-equiv="refresh" content="5;url=hello.html">
http-equiv="refresh" หมายถึงการรีเฟรชเพจ การดำเนินการรีเฟรชจะดำเนินการหลังจากผ่านไป 5 วินาที
<meta http-equiv="รีเฟรช" content="5">
บรรทัดโค้ดนี้หมายถึงการรีเฟรชเท่านั้น ไม่ใช่การกระโดด
ข้ามไปที่หน้า hello.html ทันที
<script type="text/javascript"> window.location.href = 'hello.html'; </สคริปต์>
หรือ
<ภาษาสคริปต์ = "จาวาสคริปต์">
location.replace("http://www.baidu.com/");
</สคริปต์>ข้ามไปที่หน้า hello.html หลังจากผ่านไป 5 วินาที
<script type="text/javascript">
setTimeout("window.location.href = 'hello.html'", 5000);
</สคริปต์> <script type="text/javascript">
var wapurl = window.location.pathname;
ถ้า
(/Android|webOS|iPhone|iPod|BlackBerry|Windows CE|Windows Phone/i.test(navigator.userAgent))
{ถ้า
(window.location.href.toLowerCase().indexOf("?pc")<0)
{พยายาม
{window.location.href="/wap"+wapurl}
จับ(จ){}}
-
</สคริปต์>นี่เป็นการสรุปบทความเกี่ยวกับการคลิกปุ่มบนหน้า HTML เพื่อข้ามไปยังหน้านั้น สำหรับข้อมูลเพิ่มเติมเกี่ยวกับการคลิกปุ่มเพื่อข้ามไปยังหน้าดังกล่าว โปรดค้นหาบทความก่อนหน้าของ downcodes.com หรือเรียกดูบทความที่เกี่ยวข้องด้านล่าง I หวังว่าคุณจะทำเช่นนั้นในอนาคต สนับสนุน downcodes.com!