button 传值到页面的方法 Response.Redirect("deviceList.aspx", true);
但是每click一次都会弹出新窗口,我只想弹出一次,希望第二次click的时候覆盖第一次的那个窗口,简单的说就是不管点多少次button永远只弹出一个窗口麻烦各位帮我想想办法

解决方案 »

  1.   

    //打开一个新的自定义大小的窗口
    //IsScrollBars:0无、1有
    function OpenCustomWindow(URL,WindowWidth,WindowHeight)
    {
        var leftvalue=(window.screen.width-WindowWidth)/2;
        var topvalue=(window.screen.height-WindowHeight)/2;
       var MyCustomWindow = window.open(URL, "NewWindowName", 'left='+leftvalue+'px,top='+topvalue+'px,width='+WindowWidth+'px,height='+WindowHeight+'px,toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0')  
       MyCustomWindow.focus();
    }每次打开某个窗口全部用这个函数就可以了