P.HTML:FinishedURL

From GMod Wiki

Jump to: navigation, search
Function
Syntax P.html"indexa1c8.html" title="String">String URL )
Description:
This function is called when an HTML Panel finishes loading a page.
Returns: nil
In Object: HTML
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=P.HTML:FinishedURL]P.HTML:FinishedURL [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionWhen the Panel finishes loading "Finished Loading" is sent to console. This example shows that while HTML:OpeningURL is called multiple times when the client has been redirected, HTML:FinishedURL is only called once.
Used onNewerClient.png
Code
pHTML = vgui.Create("HTML",Frame)
pHTML:SetSize(300,500)
pHTML:OpenURL("http://m.gmail.com")
function pHTML:FinishedURL(url)
	MsgN("Loaded "..url)
end
Output"Loading page" in console once, despite the redirect demonstrated in HTML:OpeningURL
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox