第一种:
<script language="javascript" type="text/javascript"> window.loca;jb51.jsp?backurl="+window.loca; </script>第二种:
<script language="javascript"> alert("返回"); window.(-1); </script>第三种:
<script language="javascript"> window.navigate("jb51.jsp"); </script>第四种:
<script language="JavaScript"> ;jb51.htm'; </script>第五种:
<script language="javascript"> alert("非法访问!"); ;jb51.jsp'; </script>第六种:网址从传参获得并转向
<script language="javascript" type="text/javascript"> function request(paras){ var url = loca; var paraString = url.substring("?")+1,url.length).split("&"); var paraObj = {} for (i=0; j=paraString[i]; i++){ paraObj[j.substring(0,j.indexOf("=")).toLowerCase()] = j.substring("=")+1,j.length); } var returnValue = paraObj[()]; if(typeof(returnValue)=="undefined"){ return ""; }else{ return returnValue; } } var theurl theurl=request("url"); if (theurl!=''){ location=theurl } </script>学习从来不是一个人的事情,要有个相互监督的伙伴,想要学习或交流前端问题的小伙伴可以私信“学习”小明获取web前端入门资料,一起学习,一起成长!