开发者

Way to open popup in a new window

开发者 https://www.devze.com 2023-04-04 19:56 出处:网络
Is there any way to force IE8 to open new window only in a pop-up? I don\'t want to change the browser settings. I want to open it and throw Javascript window.open(). Firefox is opening it in a new wi

Is there any way to force IE8 to open new window only in a pop-up? I don't want to change the browser settings. I want to open it and throw Javascript window.open(). Firefox is opening it in a new window but IE8开发者_高级运维 is opening the same in a new tab. Please suggest.


hold a SHIFT button while you click on an Internet hyperlink on your browser screen. This will force the link to open in a new window


You cannot control whether a browser opens a window in a new tab or new window.

Although, one work around is to set height and width dimension in the call to window.open() alongwith disabling the addressbar and statusbar.

window.open ("http://www.example.com", "mywindow","status=0,toolbar=0,height=600,width=900");

It worked for my case, I'm not sure if this satisfies your question.

0

精彩评论

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