zoukankan      html  css  js  c++  java
  • open一个页面并关闭父页(小技巧)

    几年前作的东西,突然忘了,想起来记一下

                    //    String UrlStr = "Default.aspx";
                    //    StringBuilder SB = new StringBuilder();
                    //    SB.Append("<script language=javascript>");
                    //    SB.Append("var udswin=window.open('" + UrlStr + "', '', 'location=yes,status=yes,scrollbars=yes,toolbar=yes,menubar=yes,fullscreen=no,resizable=no,resizable=yes');");
                    //    SB.Append("if (udswin==null) {}else");
                    //    SB.Append("{udswin.moveTo(0,0);");
                    //    SB.Append("udswin.resizeTo(window.screen.availWidth,window.screen.availHeight);");
                    //    SB.Append("window.opener = null;");
                    //    SB.Append("window.open('','_self');");
                    //    SB.Append("window.close();}");
                    //    SB.Append("</script>");
                    //    Response.Write(SB.ToString());

  • 相关阅读:
    旋转数组求最小值
    docker
    php爬虫
    docker,docker-compose 安装
    ReactPHP
    Workerman了解一下
    ubantu 运行.sh 脚本的问题
    ubantu 文件权限 Permission denied
    ubantu 文件属性
    mysql命令行中执行sql的几种方式总结
  • 原文地址:https://www.cnblogs.com/cuihongyu3503319/p/2193738.html
Copyright © 2011-2022 走看看