marty.overd...@intergraph.com wrote:
Quote:
I am opening a new window using window.open. I need the new window to
open on top of the parent everytime. I cannot use onBlur b/c the user
will need to click back to the parent for information. I just need it
to open on top everytime. I am using this line in the body
<body onload="window.focus()" bgColor="#0077d6"
ms_positioning="GridLayout">
>
The window.focus doesn't work everytime. I can open it and it may
work. I will completely close the app, start it again and it will not
work, but the next time it might. It is inconsistent. How do I get it
to not give focus back to the parent after it opens?
How can I get the parent to relinquish focus?
I can't see what the problem is. If I were faced with that situation, I
would try putting
<script>
window.focus();
</script>
right at the end of the HTML after the body.
Or perhaps trying to call the script externally, and placing
window.focus() at the end of the external script.
Another method which may or may not work, would be to try:
<body onload="this.window.focus();" bgColor="#0077d6"
ms_positioning="GridLayout">
or
<body onload="this.focus();" bgColor="#0077d6"
ms_positioning="GridLayout">
I can't confirm any of these will work, but if any of them do, please
post back as I am interested in knowing.
Best wishes.
Daz.