I have an element E
which works as a pop-up windows. When I open this windows I want it to be displayed on top of everything else. E.g. if there are multiple pop-up windows open, my particular element E
should be on top of everything else.
I'm familiar with the z-index
but this approach sounds very buggy. If someone else uses a higher z-index
my pop up windows will vanish in the background.
How can I prevent this from happening? Is there an attribute which declares an element to be always on top?