Resize DHTML (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
No edit summary |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
<onlyinclude>{{Method|name = | <onlyinclude>{{Method|name = Navigate | ||
|arguments = [[ | |arguments = [[Content]] <var>URL = about:blank</var> | ||
|description = | |description = Allows the DHTML to load a trusted url. It should be noted that Navigate loads about:blank by default. | ||
|object = HtmlWindow | |object = HtmlWindow | ||
}}</onlyinclude> | }}</onlyinclude> | ||
Line 7: | Line 7: | ||
{{clear floats}} | {{clear floats}} | ||
{{Example|This code will | {{Example|This code will open shirt.png, the default roblox T-Shirt from around 2010: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
local HtmlService = game:service("HtmlService") | local HtmlService = game:service("HtmlService") | ||
Line 13: | Line 13: | ||
htmlWindow:Show() | htmlWindow:Show() | ||
htmlWindow:Navigate("http://roblox.com/images/shirt.png") | |||
</syntaxhighlight>}} | </syntaxhighlight>}} |
Revision as of 17:10, 29 October 2023
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")