window.open打开窗口时要使窗口去掉菜单栏、工具栏、标题栏,达到窗口最大化

来源:互联网 发布:烘焙软件哪个好 编辑:程序博客网 时间:2024/05/18 20:31

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>  

阅读(3039) | 评论(0) | 转发(0) |
0

上一篇:Oracle中如何计算时间差

下一篇:什么是程序员的优秀品质

相关热门文章
  • test
  • windows环境下管理文件的8大方...
  • 网站的ico图标
  • 如何安装透明窗口主题Emerald...
  • MSNLite . 比原版MSN更小巧、...
  • 承接自动化测试培训、外包、实...
  • Solaris PowerTOP 1.0 发布
  • For STKMonitor
  • 项目小体会
  • busybox的httpd使用CGI脚本(Bu...
  • flash播放控件
  • 查看nginx某一时段的日志...
  • ftp服务器日志分析
  • mpi 目标机器积极拒绝,下面错...
  • ps700 安装的aix6.1以后,装上...
给主人留下些什么吧!~~
评论热议
原创粉丝点击