OK this is a really tricky one, need help bad!

wxdqz

New Member
Ok I need to be able to close any open child windows without knowing their handles. Basically I have a kiosk that runs local html with javascript that runs IE in fullscreen with a frame around it and loads a normal web site in the bottom of the frame with custom navigation buttons in the top of the frame. The kiosk is locked down as it's for public access, and thus you can't alt-tab, alt-f4, etc... Also open in new window is disabled, but javascript can still generate a new child window and does in many places. Each window can have a different handle depending on what site it is on, but they are always children of the local framed page which I have control to edit. The issue is that if someone opens a child window, it's not maximized, and if they click on the main parent window it goes to the background, but without alt-tab, alt-f4, or minimize you can't get back to the child again. I want to add an onfocus command in the frames so that if they leave the child window it closes it automatically, but without knowing the handle I can't find anything on this. Anybody have a CLUE as to how to accomplish this? I guess what I need is a way to close ANY child windows of a parent without knowing their handles or by finding their handles, whatever might be possible... Boy is this a stumper!
Tom
 
Back
Top