event.url

Type String
Event urlRequest
Revision 2017.3142
Keywords urlRequest, url

Overview

The absolute URL of the request.

Example

local function webListener( event )
    if ( event.url ) then
        print( "You are visiting: " .. event.url )
    end
end

local webView = native.newWebView( display.contentCenterX, display.contentCenterY, 320, 480 )
webView:request( "http://www.coronalabs.com/" )

webView:addEventListener( "urlRequest", webListener )