开发者

Open a chrome tab from delayed javascript window.open

When I window.open("http://blarg") in chrome, I get a new tab. If I delay the open, say using a jquery $(hrm).animate({},5e3,function(){window.open(url)); it opens the url in a new window with no status bar, etc — if I give it permission to pop-up that is.

I'm looking for a way to get the instant behavior, that is, I wish to open a URL after an animation, but still in a new tab.

I imagine I could get by with learning a way to instruct chrome to never ever open pop-ups and to always open them in tabs (I imagine there's a webkit setting, why it's not a built in is a mystery); but I'd rather try to find a way to do it from the javascript if possible.

I somewhat doubt there's any way to do this though. I'm not aware of any javascript that's tab-aware开发者_JAVA百科.


A similar question was asked about tabs in Firefox, but the same answer applies:

There is no way to force a window to open as a tab. It's all dependent on the user's preference settings.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜