Page 1 of 1

How do I change current Tab, while opening new Tab too?

Posted: Tue Mar 22, 2016 11:56 am
by simonmlewis
We need to make a hyperlink open a new Tab (so they don't lose their way), but we also want the previous tab to change.

So let's say they click a link to open a "library" page. We want our page to move to "thanks for visiting our library".

How do we do that? I'm guessing in Javascript. It won't need to be dynamic.

Re: How do I change current Tab, while opening new Tab too?

Posted: Tue Mar 22, 2016 12:03 pm
by simonmlewis
<a
href="http://www.google.com"
target="_blank"
onclick="document.location.href='http://www.site.com'"
>Click here to open site in this window</a>
Bingo. Unless there is a better way?