Open Link in New Tab - WebGL
Ive looked around and cant find anything that gets this done.
The closest I can come is using Application.ExternalEval("window.open('http://www.myLink.com.au','_blank')");
Problem is, this is blocked by popup blockers.
Is there a way to have this open in a new tab without getting knocked back by a popup blocker? If not, is there a way to have it open in a new window without it getting knocked back?
Answer by christianstrang · Jan 25, 2016 at 06:10 PM
Take a look at this, is a bit of work to implement but works like a charm afterwards! http://va.lent.in/opening-links-in-a-unity-webgl-project/ or here for the github link: https://github.com/valyard/UnityWebGLOpenLink
I am trying to implement this but having a hard time, getting errors- you mentioned it is a bit of work, any suggestions? I wasn't even able to get the github to work, it built but when I hosted it and tried to open it it had a long list of errors. Any help would be appreciated!
Answer by Luis-Sibrian · Aug 26, 2016 at 01:47 AM
I had the same problem, thanks a lot simpleplaystudio and Valentin Simonov.