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

Bringing a window to the front

Hi y'all -

Some of my users are experiencing a problem when they access my site.  At
times, I'll pop up a new window for entering complex search parameters since
this form doesn't fit nicely in the frames that divvy up my main window.  To
open the new window, I'm just using window.open() and location.href=.

The problem occurs if the user doesn't put this window away after use by
clicking on my "done" or "cancel" buttons.  If they instead bring the main
Netscape window to the fore again, the query submission window becomes hidden
behind the main window - especially if they're using a PC/Mac with a small
monitor.  When the user clicks the button to bring up the query window again,
nothing seems to happen because the window is already open; it's just hidden
behind another window.

My question is: is there a javascript method that brings a window to the fore?
 There should be, since Netscape does it itself when it needs to display an
alert box or error message . . .


  d a t a b a s e s    a r e   i n   o u r  g e n e s
  Brian Karlak   bkarlak@panbio.com  (510) 337-7910 ph
  Manager, SciApps Group             (510) 522-9394 fx
  P  A  N  G  E  A     S  Y  S  T  E  M  S     I  N  C
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/