[Javascript] window.parent.close

Vlad Lepadatu vladl at ines.ro
Tue Aug 26 18:03:48 CDT 2003


Or easier, window.opener = null;window.close();
  ----- Original Message ----- 
  From: Dan Costea 
  To: [JavaScript List] 
  Sent: Monday, August 25, 2003 6:53 PM
  Subject: Re: [Javascript] window.parent.close


  The ideea is that you cannot close a window that you didn't open with your js code (without user's confirmation), because of the security reasons.
  BUT
  you find all the "story" and the solution here:
  http://www.xs4all.nl/~ppk/js/croswin.html
  at section: "Closing the opener"

    ----- Original Message ----- 
    From: murugesan 
    To: javascript at LaTech.edu 
    Sent: Monday, August 25, 2003 8:35 PM
    Subject: [Javascript] window.parent.close


    When I close a window it is asking me whether to close it or not.
    (prompts me to choose yes or no for closing the window)
    I use 
    window.parent.close()

    in a page which has two frames in which there is a link for closing the window
    How can I prevent the promt choice to close the window.
    Thanks in advance for your answer.

    -murugesan


----------------------------------------------------------------------------


    _______________________________________________
    Javascript mailing list
    Javascript at LaTech.edu
    https://lists.LaTech.edu/mailman/listinfo/javascript



------------------------------------------------------------------------------


  _______________________________________________
  Javascript mailing list
  Javascript at LaTech.edu
  https://lists.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20030827/070548eb/attachment.htm>


More information about the Javascript mailing list