zoukankan      html  css  js  c++  java
  • 打开新窗口

    ————————test4.php
    <html>
        <head>
            <script type="text/javascript" src="/jquery/jquery.js"></script>
            <script type="text/javascript">
                $(document).ready(function () {
     
                    setTimeout(bb(),5000);
     
                    function bb(){
                        setTimeout(
                            "window.open('test3.php','_black','height=500,width=611,scrollbars=yes,status =yes')"
                        ,2000);
                        
                    }
     
                    // window.open('test3.php','_black','height=500,width=611,scrollbars=yes,status =yes');
                    
                    // // aa.close();
                    // setTimeout("aa.close()", 2000);
                    // setTimeout(funticon(){aa.close()},2000);
                    // aa.close();
     
     
                    // $("#aa").click();
                    // window.close('test3.php');
                });
            </script>
        </head>
     
        <body>
     
            
            <!-- <a href="javascript:" id='aa' onClick="window.open('test3.php','','height=500,width=611,scrollbars=yes,status =yes')">123</a> -->
            <p></p>
     
        </body>
    </html>
     
     
    ______________test3.php
    <html>
        <head>
            <script type="text/javascript" src="/jquery/jquery.js"></script>
            <script type="text/javascript">
                $(document).ready(function () {
                    function aa(){
                     // alert(1);
                     setTimeout(function(){window.close();},5000);
                     // alert(1);
     
     
                    }
                    setTimeout(aa(),2000);
                });
            </script>
        </head>
     
        <body>
     
            
            <a href="javascript:" onClick="window.open('test3.php','','height=500,width=611,scrollbars=yes,status =yes')">123</a>
            <p></p>
     
        </body>
    </html>
  • 相关阅读:
    索尼MT27i Android2.3.7 线刷Android4.04
    如何在三分钟内要到陌生女孩的电话
    闲情逸致小说嫉妒
    LINQ查询返回DataTable类型
    30个Oracle语句优化规则详解(1)
    .net session超时设置 sessionState的相关属性
    Socket请求和Http请求的各自特点、区别及适用场景
    在Oracle触发器中调用webService 或者java程序
    vs2010中使用log4net的方法
    Oracle 记录操作时长
  • 原文地址:https://www.cnblogs.com/csjoz/p/7243787.html
Copyright © 2011-2022 走看看