"; 2. "text"; 3. "window.location.href = 'URL';"."/> "; 2. "text"; 3. "window.location.href = 'URL';".">

Home >Web Front-end >Front-end Q&A >What is the html URL jump code?

What is the html URL jump code?

青灯夜游
青灯夜游Original
2021-06-21 13:51:3813960browse

htmlJump code: 1. "8e47a0aacca3e47306df1cf2000cdc0f"; 2. "e49700a3c2d8e25b10ebab5bd2194ad2"; 3. "window.location.href = 'website address';".

What is the html URL jump code?

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 = &#39;//m.sbmmt.com/&#39;;
    // 五秒以后再跳转
    setTimeout("javascript:location.href=&#39;//m.sbmmt.com&#39;", 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!

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
Previous article:How to add js to htmlNext article:How to add js to html