window.open打开窗口最大化、菜单栏、工具栏、标题栏、参数传递

  1. window.open打开窗口时要使窗口去掉菜单栏、工具栏、标题栏,达到窗口最大化,可以采用下面的方法:
    js 代码
    1. ///window.open(document.location, '窗体名称', 'fullscreen');//这句打开并去掉所有栏,
    2. //连系统任务栏都盖住
    3. //window.open(document.location, '窗体名称', '');//只是打开一个新窗口   
    4. //window.open(document.location,'窗体名称','fullscreen,scrollbars');//带滚动条   
    5. window.open(document.location,'maxwindow','toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=no,status=no'); 
    6. //最简单是这样window.open(document.location,"_blank","a");
    7. //这句可以打开新的窗口并且可以调节各个栏的可见性
    8. //toolbar工具栏,location地址栏,directories链接栏,menubar菜单栏,scrollbars滚动条,resizable可否改变大小,status状态栏
    9. opener=null;//没有这句,关闭时有提示,ie5.5以上有效
    10. //window.open('窗体名称');// 关闭制定窗口  
    11. window.close();//关闭当前窗口  
  2.   打开新窗口传递参数处理          第一种方法:
    代码
    1. <script language="javascript">  
    2. ///window.open(document.location, 'maxwindow', 'fullscreen');   
    3. //window.open(document.location, 'maxwindow', '');   
    4. //window.open(document.location,'maxwindow','fullscreen,scrollbars')   
    5. window.open(document.location+‘?username=zhongguo’,'maxwindow','toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=no,status=no');   
    6. opener=null;//没有这句,关闭时有提示,ie5.5以上有效   
    7. window.close();   
    8. </script>  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值