跳转后全屏,兼容大部分浏览器JavaScript

<!DOCTYPE html>
<html>
<head>
    <title>测试</title>
</head>
<body>
<h1><a onclick="jump()">测试</a></h1>
<script>
function jump(){
    var Cwin= window.open('http://baidu.com','','status=yes,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes');
    Cwin.moveTo(0,0)
    Cwin.resizeTo(screen.availWidth,screen.availHeight);
    window.opener=null;
    window.open('','_self')
    window.close()
}
</script>
</body>

</html>

 

posted @ 2016-06-27 10:36  陶欣  阅读(1391)  评论(0编辑  收藏  举报