0

Is there any callbacks when we click outside of chrome plugin, I want the data to persist which user has typed in but when the user clicks outside of the plugin the fields which user typed is lost, How would I persist that typed data before the user clicks outside of the plugin.

summu
  • 388
  • 2
  • 7
  • 25
  • What do you mean by "outside of chrome plugin"? Is it a popup? – Aefits May 07 '18 at 08:53
  • Yes it is a popup – summu May 07 '18 at 08:54
  • 2
    Add an event to listen for every change in any of the fields and store the data inside `chrome.storage`. – Luka Čelebić May 07 '18 at 08:59
  • @PredatorIWD , then i have to place a lot of event listener like i have 10 text fields so i have put 10 event listener for each of them for 'keyup' I find this to be helpful but it doesn't work for me https://stackoverflow.com/questions/15798516/is-there-an-event-for-when-a-chrome-extension-popup-is-closed – summu May 15 '18 at 08:02

0 Answers0