P.HTML:FinishedURL
From GMod Wiki
| 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: |
|
| 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
| Description | When 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 on | |
| 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 |