Don't mix up different contexts. Unity's scripting environmant is completely seperated from the website the player runs in. You can't use a variable defined in Unity in webpage javascript, but you can pass the content of that variable like this:
var setURL = '';
function OnMouseDown():void {
Application.ExternalEval("window.open('" + setURL + "')");
}
Well, it looks to me like you're missing some quotes: Application.ExternalEval("window.open('" + setURL + "')");
Well, it looks to me like you're missing some quotes: Application.ExternalEval("window.open('" + setURL + "')");
– syclamothDoh! :D My bad... forgot it's a string. I will fix it (but it may take a while until it's visible...)
– Bunny83