I have a page that lists uploaded attachments and an icon next to each attachment that opens a popup window (when clicked) to allow the user to edit assorted attachment information for each attachment.
My questions are:
-
How do I ensure that the user is allowed to open only one popup window at any one time
-
When the user tries to open another popup window, an alert will pop up and tell him/her that they aren’t allowed to open more than one window.
You can use a “handle” to the window and check if it is open or not, here is a sample: