DHTML: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
ObsidianPLG (talk | contribs) much better |
ObsidianPLG (talk | contribs) m wait, almost forgot, re-added cat |
||
Line 29: | Line 29: | ||
== See also == | == See also == | ||
* [[RBX.lua.ScreenGui (Object)|User GUIs, your best option for a substitute, added 2009]] | * [[RBX.lua.ScreenGui (Object)|User GUIs, your best option for a substitute, added 2009]] | ||
[[Category:2006-2007 features]] |
Revision as of 21:05, 18 April 2023
Work In Progress This is currently being worked on! Check back later for more information... hopefully. |
Ouch! |
DHTML was a feature, added sometime before 2007, which would let you create and display HTML documents during gameplay. These were separate windows that would open on the user's computer.
Usage
local HtmlService = game:service("HtmlService")
local htmlWindow = HtmlService:NewWindow()
htmlWindow.DocumentComplete:connect(function()
htmlWindow:SetBody([==[
<table width="420" height="190" border="0">
<tr>
<td width="490" bgcolor="#FFFFFF"><font color="#000000"></font>
<div align="center">
<p><font color="#000000"><b>Hello, World!</b></font></p>
<p><font color="#000000">I am a DHTML window!</font></p>
</div>
</td>
</tr>
</table>
]==])
htmlWindow:Show()
end)
htmlWindow:Navigate()
You would end up with something like this: