Closing a parent window after the alert message

Tech-Archive recommends: Speed Up your PC by fixing your registry

KritiVerma_at_hotmail.com
Date: 03/24/05


Date: Thu, 24 Mar 2005 12:19:04 -0800

I have a Page on which on load prompts an alert message . Now I want that
when the user clicks "ok " on the alert message . The Parent window should be
closed(which is the form that loaded to display a Message box)

my code looks like
function DisplayEOLTicketInfo()
{
  var messagetest = "";
    var sStatus= "";

    sStatus = eworkGetField("sStatus", "");

   messagetest = eworkGetField("sEOLTicketInfo", "");
        
   if(sStatus == "Completed" )
    {
       if (messagetest != "")
      {
           alert (messagetest);
// window.close()
// parent.window.close() //(I tried this but this does not work)
       }
     }
}

Please advice

Thanks
Kriti



Relevant Pages

  • Re: Closing a parent window after the alert message
    ... > I have a Page on which on load prompts an alert message. ... > function DisplayEOLTicketInfo() ... This way you don't have to waste time with building another window. ...
    (microsoft.public.scripting.jscript)
  • Application.DisplayAlerts
    ... The following does not stop the alert message box if ... an attempt is made to enter data into a protected cell. ... Any advice as to how to stop the alerts would be greatly ... Private Sub Worksheet_Activate ...
    (microsoft.public.excel.programming)