OT: Javascript to close any prev open windows

Mark Wieder mwieder at ahsoftware.net
Wed Aug 4 18:05:06 EDT 2004


RGould8-

Wednesday, August 4, 2004, 6:55:41 AM, you wrote:

Rac> Does anyone know if a means in Javascript to write an "onload" handler that
Rac> detects any previously opened windows in Internet Explorer and automatically
Rac> closes them when the present html page opens?

JavaScript doesn't maintain a list of windows.
http://www.faqts.com/knowledge_base/view.phtml/aid/1460/fid/124

Aside from the social repercussions of closing a user's browser
windows, is there some reason you need to do this so draconically? I
think the whole idea of having separate browser windows is so that
they can be independently opened and closed. Of course, if they're
windows you've opened yourself from your app then you should be able
to maintain an array and close them at the appropriate time.

Otherwise, short of closing the browser and relaunching your url, I
think you're out of luck on this.

-- 
-Mark Wieder
 mwieder at ahsoftware.net



More information about the use-livecode mailing list