Navigate (Method)

From Legacy Roblox Wiki
Revision as of 13:11, 29 October 2023 by Pongo02 (talk | contribs) (Created page with "<onlyinclude>{{Method|name = Navigate |arguments = Content <var>URL = about:blank</var> |description = Allows the DHTML to load a trusted url. It should be noted that Navigate loads about:blank by default. |object = HtmlWindow }}</onlyinclude> {{clear floats}} {{Example|This code will open shirt.png, the default roblox T-Shirt from around 2010: <syntaxhighlight lang="lua"> local HtmlService = game:service("HtmlService") local htmlWindow = HtmlService:NewWindow() h...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Navigate( Content URL = about:blank )
Returns nil
Description: Allows the DHTML to load a trusted url. It should be noted that Navigate loads about:blank by default.
Member of: HtmlWindow


Example
This code will open shirt.png, the default roblox T-Shirt from around 2010:
local HtmlService = game:service("HtmlService")
local htmlWindow = HtmlService:NewWindow()

htmlWindow:Show()
htmlWindow:Navigate("http://roblox.com/images/shirt.png")