Jump to content

Z-Index of javascript windows

Recommended Posts

we are opening multiple browser child windows using window.showmodellessdialog() method -
Is there any way to get z-Index of this window w.r.t. parent window?
window.style.zIndex gives null or undefined.
I need Z-Index to maintain overlapping order of these windows.
Link to post
Share on other sites

The window object doesn't have a property like that. You might be able to use onblur and onfocus events to track the order of the windows, although there's not a good way to tell when the window closes.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...