Closing a window

Results 1 to 2 of 2

Thread: Closing a window

  1. #1
    DBorland Guest

    Default Closing a window

    I want to display a please wait message while I&#039m submitting a form, so the user knows what&#039s going on and close the please wait form once the parent frame is ready again. I&#039ve got it setup so that in javascript at the end of the parent form, I tell it to open a window with the same name (to get a reference to the window), and then have it close that window. That works if I know the window is always going to have the same name, but sometimes I give the window a different name (I use the window name to pass the message I want the please wait screen to display). Any suggestions on a good way to handle this?<BR><BR>Thanks.<BR><BR>David

  2. #2
    Join Date
    Dec 1969

    Default RE: Closing a window

    try the following, i think its ok but ive not tried it<BR><BR>&#060;script&#062;<BR>var m_win<BR><BR>function f_open(){<BR>m_win ="here.htm")<BR>}<BR><BR>function f_close(){<BR>m_win.close()<BR>}<BR><BR>&#060;/script&#062;<BR><BR>i cant remember the arguments to but you get the idea.<BR><BR>Hope thats OK...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts