View Full Version : Check if another panel or window is on top of an existing panel

29 Aug 2013, 9:54 PM
I have a panel, then on clicking some button i open a new window which covers the entire existing panel , now i want to perform some operations which depend on whether the new window is on top of existing panel or not that is :
If its just panel perform operation A
If there is anything like a new window / new panel on existing background panel perform operation B

How will bottom background panel know that there is a new panel / window on top of it ?

How do i do ?

Thanks in Advance

3 Sep 2013, 3:54 PM
Can you just check for the existence of that Window and see if it's visible?

console.log(win && win.isVisible());