zoukankan      html  css  js  c++  java
  • window.open窗口打开参数

    窗体打开  说明

    window.open ('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, 

    toolbar=no, menubar=no, scrollbars=no, resizable=no')

    window.open 弹出新窗口的命令; 

    'page.html' 弹出窗口的文件名; 

    'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替; 

    height=100 窗口高度; 

    width=400 窗口宽度; 

    top=0 窗口距离屏幕上方的象素值; 

    left=0 窗口距离屏幕左侧的象素值; 

    toolbar=no 是否显示工具栏,yes为显示; 

    menubar,scrollbars 表示菜单栏和滚动栏。 

    resizable=no 是否允许改变窗口大小,yes为允许; 

    location=no 是否显示地址栏,yes为允许; 

    status=no 是否显示状态栏内的信息(通常是文件已经打开),yes为允许; 

    直接window.open()也行 默认的

    子窗口刷新父窗口

    window.opener.location.reload()

    打开父窗口

    window.open(this.value,'_parent','')

    打开窗口显示居中

    function openPage(page,title,width,height)
    {
    window.open(page,title,"width="+width+",height="+height+",scrollbars =no,status=yes,toolbar=no,left="+(screen.availWidth-width)/2+",top="+(screen.availHeight-height)/2)+")";
    }

  • 相关阅读:
    邮件发送工具类
    redis在项目中配置
    搭建zookeeper集群
    activeMQ安装
    solr安装配置中文分词IK
    reids安装
    jdk/tomcat/mysql在linux下安装
    使用poi进行excel导入
    linux 大杂烩
    找包网址
  • 原文地址:https://www.cnblogs.com/zhangqifeng/p/1443117.html
Copyright © 2011-2022 走看看