I’m trying to add embedded css in order to open all links in new tab and but it doesn’t work:
<style type="text/css">
a
{
target-name: new;
target-new : tab;
}
</style>
<body>
<a href="http://www.google.com" >Google </a>
</a>
</body>
I want to open link in new tab and I don’t want to use ‘target’ property for each link.
Thanks to all guys for their comments and answers the following JQuery code fixed my problem:
ref: http://css-tricks.com/snippets/jquery/open-external-links-in-new-window/