acbarbosa1964 / thtmlviewer

Automatically exported from code.google.com/p/thtmlviewer
Other
0 stars 2 forks source link

Execute javascript ? #411

Open Uefi1 opened 2 years ago

Uefi1 commented 2 years ago

Hello, how can I load index.html locally and execute in it javascript ?

procedure TForm1.Button1Click(Sender: TObject);
begin
HtmlViewer1.LoadFromFile('index.html');
HtmlViewer1.Executejavascript('document.getelementbyid("html")'); // ????????
end;