Revision Difference
HTML#568215
<panel>
<parent>Panel</parent>
<realm>Client</realm>
<description>
<note>For more information on Garry's Mod's web rendering, you can consult the following page: <page>HTML_Web_Engine</page></note>⤶
The HTML control can be used to display web pages just like an internet browser.
<page>DHTML</page> has additional functionality for interfacing with the page, such as sending and receiving data.
⤶
## Blocked URL Extentions⤶
⤶
⤶
## Blocked URL Extentions⤶
This means your url cannot end in any of these extensions, e.g.: (http://yourdomain.com/garry.exe)
* .exe
* .bat
* .dll
* .zip
* .mp3
* .swf
</description>
</panel>
<example>
<description>Creates an HTML control in the center of screen, and makes it display http://wiki.garrysmod.com/</description>
<code>
concommand.Add( "test_html", function()
local frame = vgui.Create( "DFrame" ) -- The name of the panel we don't have to parent it.
frame:SetPos( 100, 100 ) -- Set the position to 100x by 100y.
frame:SetSize( 500, 500 ) -- Set the size to 300x by 200y.
frame:SetTitle( "HTML Test" ) -- Set the title in the top left to "Derma Frame".
frame:MakePopup() -- Makes your mouse be able to move around.
local HTMLTest = vgui.Create( "HTML", frame )
HTMLTest:Dock( FILL )
HTMLTest:OpenURL( "http://wiki.garrysmod.com" )
end )
</code>
</example>
Garry's Mod
Rust
Steamworks
Wiki Help