procedure TForm2.Button1Click(Sender: TObject);
var arquivo : string;
begin
arquivo := 'teste.pdf';
WebBrowser1.Navigate('C:\zLocal2016\src_Teste\PDF_atual\pdf\web\viewer.html');
end;
I need to pass the file variable that is in Delphi to the JavaScript of the page loaded in WebBrowser >.