---
title: "全屏全屏全屏全屏"
author: "chokee"
date: "2014-06-10T15:49:20Z"
tags: []
categories: ["编程语言"]
slug: "untitled"
draft: false
lastmod: "2014-06-10T15:49:20Z"
id: 2077977
url: "https://chokee.iteye.com/blog/2077977"
---

window.open(url,"","fullscreen=yes");

sc=window.open(url,"","resizable=yes,scrollbars=yes");
sc.resizeTo((screen.availWidth),(screen.availHeight));
sc.moveTo(0,0)

=======

window.open打开窗口时要使窗口去掉菜单栏、工具栏、标题栏，达到窗口最大化，可以采用下面的方法：
js 代码
///window.open(document.location, '窗体名称', 'fullscreen');//这句打开并去掉所有栏，
//连系统任务栏都盖住
//window.open(document.location, '窗体名称', '');//只是打开一个新窗口   
//window.open(document.location,'窗体名称','fullscreen,scrollbars');//带滚动条   
window.open(document.location,'maxwindow','toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=no,status=no'); 
//最简单是这样window.open(document.location,"_blank","a");
//这句可以打开新的窗口并且可以调节各个栏的可见性
//toolbar工具栏,location地址栏,directories链接栏,menubar菜单栏,scrollbars滚动条,resizable可否改变大小,status状态栏
opener=null;//没有这句，关闭时有提示,ie5.5以上有效
//window.open('窗体名称');// 关闭制定窗口  
window.close();//关闭当前窗口  
  打开新窗口传递参数处理          第一种方法：
代码
<script language="javascript">  
///window.open(document.location, 'maxwindow', 'fullscreen');   
//window.open(document.location, 'maxwindow', '');   
//window.open(document.location,'maxwindow','fullscreen,scrollbars')   
window.open(document.location+‘?username=zhongguo’,'maxwindow','toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=no,status=no');   
opener=null;//没有这句，关闭时有提示,ie5.5以上有效   
window.close();   
</script>  


================
<html>
<body>

<object id=min type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="MINIMIZE">
</object>
<input type=button onclick="min.Click()" value="最小化">

<OBJECT id=max type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"> 
<param name="Command" value="MAXIMIZE"> 
</object> 
<input type=button onclick="max.Click()" value="最大化">

<OBJECT id=close type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"> 
<param name="Command" value="CLOSE"> 
</object> 
<input type=button onclick="close.Click()" value="关闭窗口">

</body>
</html>