On a link, is there a way to specify whether the new _blank window is actually a new window or a new tab?
Thanks
On a link, is there a way to specify whether the new _blank window is actually a new window or a new tab?
Thanks
Nothing yet, but when new browsers support CSS3 we will have the ability to tab link. Take a look at http://www.w3.org/TR/2004/WD-css3-hyperlinks-20040224/#target0
No, there is not (at least not in the current HTML specifications...).
And actually, why would you want to? The user probably has set his/her browser to open either in tabs or windows depending on what the user prefers. Overriding user preferences will just piss them off :P
There is no garuanteed way to do this. You can, however, specify height and width for you new window. Doing this will force the link to open in a new window, and not a tab in most browsers.
window.open(url, windowName, height=400, width=400);
I would caution against doing this, however. Tabs vs. windows is a user preference for a reason.