A new window or a new tab - a way to solve it?

Is there a way in the link to indicate whether the new _blank window will actually be a new window or a new tab?

thanks

+4
source share
5 answers

There is no way to do this. However, you can specify the height and width for the new window. This will make the link open in a new window, not a tab in most browsers.

window.open(url, windowName, height=400, width=400); 

I would caution against this. Tabs against windows is the user's preference for a reason.

+6
source

Nothing so far, but when new browsers support CSS3, we will have the opportunity to link the link. Take a look at http://www.w3.org/TR/2004/WD-css3-hyperlinks-20040224/#target0

+5
source

No, no (at least not in the current HTML specs ...).

And in fact, why do you need this? The user probably set his browser to open either in the form of tabs or in windows, depending on what the user prefers. Overriding user preferences will simply water them: P

+4
source

No no.

0
source

No no.

0
source

All Articles