Type String Event urlRequest Revision Release 2025.3721 Keywords urlRequest, type
The type of urlRequest event that indicates the action associated with the request. Values include:
"link" — user tapped a link"form" — user submitted a form"history" — user tapped the back or forward button"reload" — user tapped the reload button"formResubmit" — user resubmitted a form"other" — some other action occurred"loaded" — finished loading the URLlocal function webListener( event )
if ( event.type ) then
print( event.type )
end
end
local webView = native.newWebView( display.contentCenterX, display.contentCenterY, 320, 480 )
webView:request( "https://solar2d.com/" )
webView:addEventListener( "urlRequest", webListener )