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.

Answers


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.


Need Your Help

How to display row counts for queries in MySQL?

mysql view count

Funny issue because it seems the query is simple compared to other stuff I have and I know the answer but not how to display it as one view.

why does cmake compiles everything after git commit

git compilation cmake

Lets say I have a code compiling at some time with cmake 2.8 on linux.