is it possible to save entire document loaded in Webbrowser (in Delphi) as a ordinary HTML file with new values (I mean values entered by user in html’s forms this document)?
I need this for reading this HTML document with all values next time when application will be used.
is it possible to save entire document loaded in Webbrowser (in Delphi) as a
Share
Sure this is possible!
Small demo App, make a new vcl forms application, drop a
TWebBrowser, aTButtonand aTMemoon your form and use this code (don’t forget to bindOnCreatefor the Form andOnClickfor the Button)Output:
EDIT
As mjn pointed out, the values of password type inputs will not be shown.
You can still can get their value though:
add these 2 lines to Button1.Click and change html
OnCreate:
OnClick: