The following is necessary: ​​there is a pop-up form on the page, when it is called, its display property gets the value - block, when closed it becomes none. How can I catch the moment when the user closes the form?

  • Can you provide a code that closes the form itself? - intro94
  • closing a form is a consequence, and you need to catch the cause, namely a click, which leads to the closure of the form - MasterAlex
  • @MasterAlex It all depends on its code. You can hang up tracking $('#myButton').click(); And you can simply prescribe what you need in the closing function ... That's why I asked for details. For why track a click if you can write a code in the closing function. :) - intro94
  • Thanks, I can’t give you the code, but I understood everything I need - hik

0