Revision Difference
DHTML:ConsoleMessage#550102
<function name="ConsoleMessage" parent="DHTML" type="panelfunc">
<ispanel>yes</ispanel>
<description>Called when the page inside the <page>DHTML</page> window runs `console.log`. This can also be called within the Lua environment to emulate `console.log`. If the contained message begins with `RUNLUA:` the following text will be executed as code within the Lua environment (this is how Lua is called from DHTML windows).</description>⤶
<description>Called when the page inside the <page>DHTML</page> window runs the `console.log` javascript function. On the x86-64 beta, it's called for all built-in `console.*` javascript functions.⤶
⤶
If <page>DHTML:SetAllowLua</page> is set to `true` and the message begins with `RUNLUA:`, the text following `RUNLUA:` will be executed as code within the Lua environment (this is how Lua is called from DHTML windows).</description>⤶
<realm>Client and Menu</realm>
<file line="66-L97">lua/vgui/dhtml.lua</file>⤶
<args>
<arg name="msg" type="string">The message to be logged (or Lua code to be executed; see above).</arg>
</args>
</function>