EasyUI Forum
April 18, 2024, 12:32:12 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Get List of Open Windows  (Read 3685 times)
jwilliquor
Newbie
*
Posts: 15


View Profile
« on: March 17, 2020, 11:20:55 AM »

Is there a way to get a list of open windows?  I need to look through the open windows to see if a window is already open or not.

Thanks
Justin
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: March 18, 2020, 01:34:28 AM »

Call this code to see if the window is open.
Code:
var opts = $('#w').window('options');
if (opts.closed){
  console.log('The window is closed');
} else {
  console.log('The window is open');
}
Logged
jwilliquor
Newbie
*
Posts: 15


View Profile
« Reply #2 on: March 23, 2020, 02:17:34 PM »

Jarry

That is only part of what i'm looking for.  The other part is a list of ID's of window objects themselves that exist.

Thanks
Justin
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!