标题:window.open()
取消只看楼主
fujinliang
Rank: 1
等 级:新手上路
帖 子:25
专家分:0
注 册:2007-3-30
结帖率:0
 问题点数:0 回复次数:1 
window.open()
function makePopup(url,width,height,overflow)
{
         var a='';
         var b='';
         if(width>640)
          {
              width=640;
          }
          if(height>480)
          {
              height=480;
          }
         if(overflow==''&& overflow=='both')
          {
              a=b='yes';
          }
          else if(overflow=='resize')
          {   a='yes';
               b='no';
            }
            else if(overflow='scroll')
            {
                a='no';
                b='yes';
            }
        else {
                a=b='yes';
                }
        var win=window.open(url,'','width='+width+',height='+height+',scrollbars='+b+',resizable='+a+',toolbar=no,status=yes,menubar=no,location=no');
                                             return win;
 }
        window.onload=linksd;
         function linksd()
         {
         var wins=makePopup('1.html',640,300,'resize');
          self.focus();
          return wins.closed;
          }

问,,怎么弹出的窗体是全屏啊,,,那里的参数怎么会都没有用到啊?
搜索更多相关主题的帖子: window open 
2008-08-14 16:45
fujinliang
Rank: 1
等 级:新手上路
帖 子:25
专家分:0
注 册:2007-3-30
得分:0 
是用的IE,不知道为什么,上次得行,这次就不得行了
2008-08-18 16:15



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-228283-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.140835 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved