• Closing HTML
    2 replies, posted
I have the following [CODE]HTML = vgui.Create( "HTML", Base ) HTML:SetPos(20,135) HTML:SetSize( 1755 , 800 ) HTML:OpenURL( websiteRULES )[/CODE] now I have the following on a buttons click function [CODE]IconStats.DoClick = function(self) HTML:Close() end[/CODE] Now when I called HTML:Close() I get the following error [CODE]attempt to call method 'Close' (a nil value)[/CODE] To explain more, what I'm trying to do is to hide the html but not remove it. If you know another way around this or someway I can fix I would appreciate the help.
[CODE] HTML:SetVisible(false) [/CODE] Close only works on DFrames (I think) [editline]19th April 2016[/editline] Also, I think SetVisible(false) disables mouse/keyboard input but I might be wrong
thanks done it ty
Sorry, you need to Log In to post a reply to this thread.