Opening a new Tab on a redirect link

They have: 4 posts

Joined: Apr 2008

Hi,

How to make the link open in a new tab on a redirect link in the codes below?

<script type="text/javascript">
<!--
window.location = "http://whateveristhesitesname.com"
//-->
</script>

Thanks!

Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

See window.open()

Not choosing to have it open in a new window vs new tab, you have no control over, that is set by the preferences in the users' browser.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.