xcodeurlweb-applicationsdashcode

Open URL from button Dashcode


I am sure that this is extremely easy and probably a one liner but I can't seem to find the answer anywhere.

I am creating a very simple web app in Dashcode (my first time) that has a button, when you press it, it needs to link to a url.

Cannot seem to find anything.

Thank you very much for your time.


Solution

  • This ended up being what I needed:

    document.location = ("http://www.google.com");