后台跳转 JavaScript访问ab页面定时跳转代码

 

  echo "alert('更改成功".$true.";更改失败".$false."');
window.location.href='/index.php/Admin/Mall/MallList';";


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>

</head>
<body>

</body>
<script type='text/javascript'>
function pload(){
setTimeout("location.href='2.php'",3000);
}
pload();
</script>
</html>

 

 

1.超链接<a href="http://www.100sucai.com/" title="100素材网">Welcome</a>

等效于js代码

window.location.href="http://www.100sucai.com/";     //在同当前窗口中打开窗口

 

2.超链接<a href="http://www.100sucai.com/" title="100素材网" target="_blank">Welcome</a>

等效于js代码

window.open("http://www.100sucai.com/");                 //在另外新建窗口中打开窗口

posted @ 2016-12-25 10:45  linuxsec  阅读(154)  评论(0)    收藏  举报