Panel:RunJavascript
Example
Shows how to change document.body.innerHTML property by calling this function on panel.
Output: Inner HTML of document body in DHTML panel is now set to "HTML changed from Lua using JavaScript!".
Executes a string as JavaScript code on a web document panel.
This means that with Chromium, you cannot JavaScript run code immediatly after calling Panel:SetHTML or Panel:OpenURL. You should wait for the events PANEL:OnDocumentReady or PANEL:OnFinishLoadingDocument to be triggered before proceeding, otherwise you may manipulate an empty / incomplete document.
Shows how to change document.body.innerHTML property by calling this function on panel.