打开页面,弹出对话框,只有确定,没有取消,点确定跳转到一个设定网址,关闭对话框也跳转到设定网址  当前窗口打开

解决方案 »

  1.   

    <script>alert("只有确定,没有取消");window.open("url");</script>
      

  2.   


     function mustTiao()
            {
               if(confirm("必须进去!"))
               {
                 window.open("url");
               }
               else
               {
               window.open("url");
               }
    }
            }
      

  3.   

    <script>alert("只有确定,没有取消");window.open("url");</script>
    应该能行。
      

  4.   

    用alert()方法,或者用DIV模拟弹出窗口
      

  5.   

    <html>
    <head>
    <script type="text/javascript">
    function aaa()
    {
    alert("oh no");
    window.location="http://community.csdn.net/";
    }
    </script>
    </head>
    <body onload = aaa();>
    <body>
    </html>
    在本窗口打开 楼主试试 是这个效果吗