Garry's Mod Wiki

Revision Difference

HTML#511597

<panel>⤶ <parent>Panel</parent>⤶ <description>⤶ The HTML control can be used to display HTML code just like an internet browser. Unlike <page>DHTML</page>, this control cannot accept user input or complex interaction, such as retrieving image data.⤶ ⤶ **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>⤶ HTMLTest = vgui.Create( "HTML" )⤶ HTMLTest:SetPos( 50, 50 )⤶ HTMLTest:SetSize( ScrW() - 100, ScrH() - 100 )⤶ HTMLTest:OpenURL( "wiki.garrysmod.com" )⤶ </code>⤶ ⤶ </example>⤶ ⤶