Open a chrome tab from delayed javascript window.open

Posted by jettero on Stack Overflow See other posts from Stack Overflow or by jettero
Published on 2010-03-27T19:29:36Z Indexed on 2010/03/27 19:33 UTC
Read the original article Hit count: 266

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about google-chrome