EDOM Posted May 6, 2022 Share Posted May 6, 2022 When I run this code the browser pops up message "Leave site? changes you made may not be saved." Is there a way to stop this window from popping up? UniSession.AddJS('window.location.href="mailto:'+UniDBEdit_Email.Text+'"'); Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 6, 2022 Share Posted May 6, 2022 19 minutes ago, EDOM said: Is there a way to stop this window from popping up? Hello, Please explain in more detail. Quote Link to comment Share on other sites More sharing options...
EDOM Posted May 6, 2022 Author Share Posted May 6, 2022 57 minutes ago, Sherzod said: Hello, Please explain in more detail. When I click "Send" button, chrome will pop up this message. Can I disable it ? procedure TfrmPhoneBook.btnEmailClick(Sender: TObject); begin inherited; if UniDBEdit_Email.Text <> '' then begin UniSession.AddJS('window.location.href="mailto:'+UniDBEdit_Email.Text+'"'); end; end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 6, 2022 Share Posted May 6, 2022 ? Quote Link to comment Share on other sites More sharing options...
EDOM Posted May 9, 2022 Author Share Posted May 9, 2022 On 5/6/2022 at 5:57 PM, Sherzod said: ? Hi Sherzod, You Really Made My Day. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.