Force a page to open in a new tab
by
, 05-06-2012 at 09:55 PM (82942 Views)
There's an increasing number of sites that refuse to be opened in a new window. For instance, the following doesn't work (anymore):
In those cases, you can use the following to open the sites in a new tab:Code:<a href="javascript: void(0)" onclick="window.open('http://google.com'">open Google in new (traditional) window</a>
===Code:<a href="javascript: void(0)" onclick="window.open('','_new').location.href='http://google.com'">open Google in new tab</a>
Arie.