Navigate (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
(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...")
 
No edit summary
 
Line 15: Line 15:
htmlWindow:Navigate("http://roblox.com/images/shirt.png")
htmlWindow:Navigate("http://roblox.com/images/shirt.png")
</syntaxhighlight>}}
</syntaxhighlight>}}
[[Category:Methods]]

Latest revision as of 18:42, 13 February 2024

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")