Update [2019] Most browsers today open in a new tab when you set the target to _blank
. The days of popup windows is long gone. We can now use:
<a href="https://stackoverflow.com/questions/6296013/some url" target="_blank">content of the anchor</a>
Most sane browsers will open the new window in a new tab.
CSS3 supports “open in new tab”, by the property target-new
target-new: window | tab | none;
Update [2016]: this method never made it into the CSS3 spec, as one of the comments indicates. This shouldn’t be used. However, it can be seen that most modern browsers open target="_blank"
links in a new tab anyway, unless one attempts to resize the new tab immediately thereafter. However, there does not appear to be a mechanism to force this behavior in the specifications.
[2011] For a method of forcing opening in a new tab that is well supported, try the following:
<a href="https://stackoverflow.com/questions/6296013/some url" target="_newtab">content of the anchor</a>
Else, use this method to resize window immediately, to ensure that popup blockers do not kill your popup