8 Replies Latest reply on Jun 7, 2017 1:05 PM by sargums46564804

    How give error message if more than one pdf open

    sargums46564804 Level 1



      How can I write javascript could where user receives an error message (app.alert) if another pdf file is open?  My program only works if one pdf file is open.  When another is open, it does not work b/c it detects 2 active pdfs open instead of just one.  I want the user to be alerted to close the other pdf before proceeding.  The following did not work:


      if event.target > 1

      app.alert ("Close all pdfs before proceeding.",3);

      else ...


      Please suggest an alternative code. Thx.