Open a webpage in Titanium (iPhone or ANDROID).

By | May 4, 2011

Opening a webpage in Titanium is really simple. Look at the following sample.

function openWebpage(){
	var URL = "http://www.google.com"	;
	Titanium.Platform.openURL(URL);
};

If you are running in iPhone then it will open safari and if it is ANDROID, it will open the default browser with the supplied URL String.
Happy coding……..

Please leave your valuable comments.

One thought on “Open a webpage in Titanium (iPhone or ANDROID).

  1. kavya

    hi .

    am redireing facebook link using Titanium.Platform.openURL() . but it is opening facebook app please help me for this issue. i need to open facebook link in browser

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *