P.HTML
From GMod Wiki
| Contents | 
Description
The HTML control can be used to display HTML code just like an internet browser. Uses WebKit version 532.1
Usage
It's quite easy to use, set up just like a frame of sort, then start feeding it HTML to display.
| Description | Creates an HTML control in the center of screen, and make it display http://www.garrysmod.com | 
|---|---|
| Used on |  | 
| Code | HTMLTest = vgui.Create("HTML") HTMLTest:SetPos(50,50) HTMLTest:SetSize(ScrW() - 100, ScrH() - 100) HTMLTest:OpenURL("http://www.garrysmod.com") | 
| Output | None | 
Methods
 HTML:OpeningURL
 HTML:OpeningURL 
 HTML:FinishedURL
 HTML:FinishedURL 
 HTML:StatusChanged
 HTML:StatusChanged
 HTML:PageTitleChanged
 HTML:PageTitleChanged
 HTML.SetHTML
 HTML.SetHTML
 HTML.HTMLBack
 HTML.HTMLBack
 HTML.HTMLForward
 HTML.HTMLForward
 HTML.Stop
 HTML.Stop
 HTML.Refresh
 HTML.Refresh
 HTML.OpenURL
 HTML.OpenURL
 HTML.Clear
 HTML.Clear
 HTML.RunJavascript
 HTML.RunJavascript
 HTML.GetHTMLMaterial
 HTML.GetHTMLMaterial
 HTML.StartAnimate
 HTML.StartAnimate
 HTML.StopAnimate
 HTML.StopAnimate
 HTML.IsLoading
 HTML.IsLoading
Members
PageTitle
Additional Notes
- HTML panels will not open urls with certain file extensions in them. This does not mean that it will not go directly to files with certain extensions, but that it blocks any url with any of the following known blocked file extensions anywhere in the url:
    .exe
    .bat
    .dll
    .zip
    .mp3
    .swf
even if the url is http://www.domain.tld/some.dlltext.html"Not opening URL <url>", because it has the string '.dll' in it. Note however, that the word 'dll' is allowed, just not '.dll'. This applies to the other blocked extensions as well. There are probably more blocked words, someone needs to do a comprehensive test.
- HTML panels don't seem to like opening plugins, such as content which loads Windows Media Player. A new blank window will be created with the content of the page in it with the HL2 icon which displays the content as well, and interrupts the game by either minimizing people running in fullscreen mode, or disabling input for people in windowed mode. It has been said that it is currently a problem with the Webkit browser itself, and probably won't be fixed any time soon.
 
			
			