I am trying to make a simple button that opens up a new browser window when clicked.
something like
var url=“http://www.google.com”, “_blank”
Where can I find this simple example?
tnx
Alan
I am trying to make a simple button that opens up a new browser window when clicked.
something like
var url=“http://www.google.com”, “_blank”
Where can I find this simple example?
tnx
Alan
Application.OpenURL ("http://google.com");
If you’re creating web player content and you use Application.OpenURL it will not open that URL in a new window, it will use that URL as a replacement in the current window, thus unloading your content. If you truly want the URL opened in a separate window then you should use Application.ExternalCall or Application.ExternalEval to trigger some browser-based JavaScript to do that for you. For example, write a simple “openNewWindow” function in the page in JavaScript. Then use ExternalCall to call that function, passing the URL to be opened.
Thank you!