I have a page that when the user accesses certain links a chromeless window (2) appears and meshes with the newly formed parent window (1). Works nicely in IE 5+ but in IE 6 it's not so good but OK for now.
Anyway in IE 5;5.5 the chromeless window appears. I have made it so (2) can be moved around on the screen with the mouse and also so that if the parent (1) is minimized leaving (2) only on the desktop when the links in that are clicked, the parent window will focus and that is where the child's (2) link will appear.
I have one last refinement that I'm hoping someone can shed some light on. I have this in the parent:
<script type="text/javascript">
function window_onfocus(){
if (agilePopper){
this.blur();
agilePopper.focus();
}
}
</script>
<!-- -->
<script type="text/javascript">
window.onfocus = window_onfocus;
</script>
The idea here is if the parent window is brought to focus the chromless window agilePopper will stay on top and keep the focus. That's fine but here's my trouble. If there is another window open on the desktop then the parent will fall behind that too. So yes it stays behind agilePopper but also goes behind any other window open on the desktop. I'd prefer it stay right behind agilePopper. Sort of like a z-order (increasing left to right): any open window on desktop - Parent - agilePopper.
If this is not possible using JavaScript that's fine I won't look into it further. But if it is I'd like any suggestions how this might be achieved. Thanks.
--
George Hester
__________________________________