开发者

Why is this getting "invalid argument" error in IE8? (window.open)

开发者 https://www.devze.com 2023-03-19 19:45 出处:网络
function popupLink(link){ var popup = window.open(link,\'Facebook Share\',\'menubar=0,开发者_StackOverflowdirectories=0,toolbar=0,resizable=1,status=0,location=0,width=500,height=350\');
            function popupLink(link){                
               var popup = window.open(link,'Facebook Share','menubar=0,开发者_StackOverflowdirectories=0,toolbar=0,resizable=1,status=0,location=0,width=500,height=350');
                if(!popup){
                    return true;
                }else{                    
                    return false;
                }
            };

 popupLink('http://www.facebook.com/sharer.php?u=http%3A%2F%2Fmsn.com%2F');

I just want to pop up a link...


Window names cannot include spaces in IE. Change 'Facebook Share' to 'FacebookShare'

0

精彩评论

暂无评论...
验证码 换一张
取 消