[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to recognize the 'last' window?



Does anybody know how to check if I am in the topmost window?

The idea behind is:
   I have a 'close' button in my document with _self.close() function.
   But I do not want to call this function in case when I am in the last
   browser window.   It would exit the whole Navigator and that I is not
   what I want. So something like that would suit me:
   function closeConditionally() {
       if (there-are-more-open-windows) _self.close()
       else return;

Thanks for answers
Martin

-- 
------------------------------------------------------
| Martin Senger     m.senger@dkfz-heidelberg.de      |
|                   voice: (0049) 6221/422340        |
|                   fax:   (0049) 6221/422333        |
------------------------------------------------------
--------------------------------------------------------------------
For help about the list, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
List archives and pointer to FAQ: http://www.obscure.org/javascript/