OnClientBrowserDocumentReady: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
Line 12: Line 12:


==Source==
==Source==
The [[Element/Browser|browser]] element
The [[Element/Browser|browser]] element.


==Example==  
==Example==  
Line 18: Line 18:
addEventHandler ( "onClientBrowserDocumentReady" , root ,  
addEventHandler ( "onClientBrowserDocumentReady" , root ,  
function ( url )  
function ( url )  
outputChatBox ( "#FFFC00The page"  .. url ..  "has been successfully loaded." )  
outputChatBox ( "The page '"  .. url ..  "' has been successfully loaded.")  
end  
end  
)
)

Revision as of 15:49, 18 August 2015

This event is executed after the web page has been loaded successfully.

Parameters

string url
  • url: the url of the web page loaded.

Source

The browser element.

Example

addEventHandler ( "onClientBrowserDocumentReady" , root , 
	function ( url ) 
		outputChatBox ( "The page '"  .. url ..  "' has been successfully loaded.") 
	end 
)

See Also