Easy link to a web page.

Hi Guys, I’m really a newcomer… sorry.

I’m trying to do a simple app who are able to open a web page.

Do you have some sample? Could you kindly help me?

Regards, Vinc

If you just want a web page to open you can use this function: 
[lua]

local webView = native.newWebView( display.contentCenterX, display.contentCenterY, 320, 480

webView:request( “http://www.coronalabs.com/” )

[/lua]

A note regarding “native.newWebView”, for iOS only.

Ensure that there are no spaces in the URL, and also the URL must have “http” at the beginning.

If you just want a web page to open you can use this function: 
[lua]

local webView = native.newWebView( display.contentCenterX, display.contentCenterY, 320, 480

webView:request( “http://www.coronalabs.com/” )

[/lua]

A note regarding “native.newWebView”, for iOS only.

Ensure that there are no spaces in the URL, and also the URL must have “http” at the beginning.