Forum Discussion

MartinRoss's avatar
MartinRoss
Community Member
11 years ago

Link to a URL held in a variable

Has anyone been able to create an onscreen link to a webpage whose URL is held in a variable? I can't get my javascript to work.

My current attempt goes like this:

var player = GetPlayer();
var url = player.getVar("google"); // google is a text variable containing "http://www.google.com"
var win = window.open(url)

 

Any ideas?

12 Replies