maybe you can use this example of mine.. I created you a generic procedure (GetLocalStorage) that shows you all the values of localStorage  and waits to read them in UniFormAjaxEvent. the procedure is started when the form is ready .. but you can also call it at the click of a button .. object MainForm: TMainForm OnReady = UniFormReady OnAjaxEvent = UniFormAjaxEvent type   TMainForm = class(TUniForm)        procedure UniFormReady(Sender: TObject);     procedure UniFormAjax