javascript实现页面全屏,

来源:互联网 发布:sql union使用方法 编辑:程序博客网 时间:2024/05/29 17:58
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
<script>
 
function fullme()
  
{
    window.moveTo(
0,0);
     window.resizeTo(
0,1);    
    window.resizeTo(screen.availWidth,screen.availHeight);   
  }
</script>
</head>

<body >
<input type=button onclick=fullme() value="laolao" />
</body>

</html>
 
原创粉丝点击