Link to home
Start Free TrialLog in
Avatar of idiot111497
idiot111497

asked on

True Window Focus

This is a problem I've sent around the javascript newsgroup(s) a number of items. Nobody seems to have quite gotten it yet.

After having a parent window open a child window, I am now trying to have that child window stay focused on top. The reason for this is I am using the new window as a navigation system. When a user clicks on places in the new window, it changes screens in the parent frames. The problem is that when a user clicks in the parent frame or anywhere else, they lose the focus of the child window. That's no big deal for people who are familiar with windows and browser operation. You just click in the task bar to get your window back. But for those who are unfamiliar computer users, it's really annoying to try to bring back the window.

I tried a few crazy ideas like "onblur=window.focus()" but that takes total control. The window stays on top, but it denies access to any other windows (including other programs) except for itself.

I recognize that the above is simply the way nearly ALL windows work in Win95 and other operating systems. However, this hasn't always been the case with good GUI design.

Anyone have any suggestions on how to make this work?
ASKER CERTIFIED SOLUTION
Avatar of tecbuilder
tecbuilder

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RBertora
What a useless answer!
Has anything changed since 97?

annoyed.
Rob;-)
Avatar of Astroman
Astroman

I gotta agree with Rob. Not worth 20 points. Maybe PAQ's should devalue over time...
I agree with Rob and Astroman.  I've been ripped off!
I was thinking of a hack:

kick off a timer just before window.open
ontimer run a window.focus

within that the child window
run opener.timer.stop command
just before closing....

It would take me some time to produce the actual code, but if someone is willing to create a new question for this then I could be persuaded to code it..


Rob.