htmlJump code: 1. ""; 2. ""; 3. "window.location.href = 'website address';".
The operating environment of this tutorial: windows7 system, HTML5&&javascript version 1.8.5, Dell G3 computer.
HTML metal jump
In the HTML page, you can use the meta tag to enter the page jump. This method can control the jump time and liberalize it. Define the jump URL
htmlThe jump code is as follows
<meta http-equiv="refresh" content="5;url=//m.sbmmt.com">
Code explanation
Looking at the above code, there is a content attribute in the meta tag, indicating that after opening this page , how many seconds will it take to start the jump. There is also a URL attribute, indicating the redirected URL
The A tag in HTML jumps
The A tag in HTML can also be regarded as a page jump kind, just click the mouse to enter the jump
html A label jump code is as follows
<a href="//m.sbmmt.com">php中文网</a>
javascript code jump
Use on the web page jjs can also realize page jumps or timed jumps
The JS jump code is as follows
<script language="javascript" type="text/javascript"> // 以下方式直接跳转 //php中文网 window.location.href = '//m.sbmmt.com/'; // 五秒以后再跳转 setTimeout("javascript:location.href='//m.sbmmt.com'", 5000); </script>
[Related recommendations: javascript learning tutorial]
The above is the detailed content of What is the html URL jump code?. For more information, please follow other related articles on the PHP Chinese website!