开发者

Windows.open in chrome

I'm trying to use this in a website, it's for SEO needs ...开发者_Go百科 It work well but this code :

window.open(url)

Don't produce the same result in all browser, in FF and IE, it create a new tab but in Chrome it open a new window and in Safari it didn't work at all.

Any idea to fixe it or another way to do this ?


This is a browser option. You can't really control that. Check the browser settings for tab operation.


Browser settings control how window.open works. It can pick to open in a tab or a new window and there is nothing in JavaScript that can override that.


If you set some options that don't 'fit' the main window, a new window will open instead of a new tab. Tried with the width setting and ff6 and ie7.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜