Bear with me as this might seem similar to ( JavaScript open in a new window, not tab), but the method by which the link is executed is different. I am opening a "Sales Script" application via a third party application when a soft phone is answered. If the sales rep already has a browser window open (and they always do), a new tab is opened within the existing window and it isn't always readily noticeable. They are requesting that I always have my application pop a new window, but as near as I can tell the only way to do this is via the browser's preferences. Is there by any chance some javascript I am not aware of that will "undock" a tab? I suspect the answer is no, but had to ask.
Thanks for your time!
[EDIT] I thought maybe this was out of scope of the question initially, but I think it could shed light on what I am trying to do: A 3rd party app (iSymphony) runs on the local machine and listens to events on our call controller. When the rep answers, it fires a URL, which is opened in the system's default browser. I don't really have any control over how it's opened, which is why I was hoping for a javascript solution to ensure I was in a new window.
If you specify the width and height when you call window.open, most browsers will open the link in a new window rather than a tab.
window.open(url, '_blank', 'width=300,height=200');
Fiddle: http://jsfiddle.net/kelervin/Pf8Rw/
See this question for discussion and more detail.
If the intent is to get the user's attention, you could consider adding desktop notifications (assuming a browser like Chrome that supports them is an option).
See this answer for an example, it might be just what you're looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With