You need to sign in to do that
Don't have an account?
![Tobias Hagge Tobias Hagge](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Custom Button onclick javascript to open link in new browser tab
Thought this should be relative straight forward, but standard functionality does not provide this.
So I thought to execute onclick Javascript instead.
Something like this. Any adjustments to get this working?
Thanks in advance.
So I thought to execute onclick Javascript instead.
window.open("https://www.google.com/");
Something like this. Any adjustments to get this working?
Thanks in advance.
See here:
http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_open
All Answers
See here:
http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_open
I'd been using
window.location.href = "https://www.google.com/"
which showed the page in the currect tab rather than a new tab.