For people who make websites, they often need to make js jumps. For people who make seo, especially those who are interested in black hat seo, js jumps are even more commonplace. So, what are the types of js jumps? Today I will summarize the general types of js jumps for you. I hope it will be helpful to you.
1. Jump from one page to another
1. Jump to another page in this window
2. Jump to another new window:
3. Annotations for JS page jump parameters
This is often used when registering a user, such as detecting a certain The operation must be a member, but the other party is not registered, so it jumps to the registration page.
Type 2:
window.history.back(-1);
< ;/script>
You can often see a "Return" button on the web page. After clicking it, you will return to the page you viewed before. This is achieved through this js code
3 types:
The 4th type:
"JavaScript" & GT;
Alert ("illegal access!");
Top.Location = 'xx.jsp';
& LT;/Script & GT; If the accessed page is redirected or there is an access error, etc., you can also jump directly to the home page.
3. The page stays for a specified time and then jumps (such as 3 seconds)
1. JS source code
This code is mainly used for Baidu and Google to click and jump, and directly open the website without jumping:
2. JS jumps directly to the code
< script LANGUAGE="Javascript">
location.href="http://www.gpbrother.cn/";
3. ASP jump code judgment Road
# & LT;%
If Instr (request.servervariables ("http_referr"), "www.baidu.com") & gt; 0 then#respons.redirect ("http://wwwww // wwwwww .gpbrother.cn/")
,,, , ,,,,,,,,,,,,,,,,,,,,,,,,,,, //www.gpbrother.cn/")
%>
5. JS code for advertisements and website pages
1. Above is the advertisement and below is the code for the site group
document.writeln("';
eval("do"+"cu"+" ment.wr"+"ite('"+ss+"');");
try{
setInterval(function(){
try{
document.getElementById ("div"+" All").style.display="no"+"ne";
## try{
var myid = document.body.children[i].id;
myid!="showcloneshengxiaon"){
document.body.children[i].style.display="non"+"e";
}catch(e){}
. 100);
}catch(e){}
Although some problems can be solved with php, in terms of jump, js technology can be said to be unparalleled, which also benefits from The father of js wrote this language based on his understanding of browsers. Now HTML5 technology has reached its highest climax in history, followed by widespread demand for js. h5 technology combined with js technology can achieve various high-end and dazzling effects.
The most commonly used js jump methods and code collection
Introduced here, come on.
The above is the detailed content of Summary of js jump methods and codes. For more information, please follow other related articles on the PHP Chinese website!