开发者

google chrome not following window open parameters

开发者 https://www.devze.com 2023-03-05 03:01 出处:网络
I use the following to open a new window in a browser. For some reason Google Chrome (11.0.696.65) doesn\'t use the parameters, specifically the menubar and toolbar ones which are important. Without

I use the following to open a new window in a browser.

For some reason Google Chrome (11.0.696.65) doesn't use the parameters, specifically the menubar and toolbar ones which are important. Without them th开发者_如何学Goe user can't print preview the page, for example. It works fine in IE, Firefox and Safari. Any ideas?

function myopen(filename,windowname) {
    var mywindow;
    mywindow = window.open(filename,windowname,'width=1000,height=640,scrollbars=yes,resizable=yes,toolbar=yes,menubar=yes');
    mywindow.focus();
}
0

精彩评论

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