[Javascript] window.parent.close

Dan Costea costea.dan at ssi-schaefer.ro
Mon Aug 25 11:53:19 CDT 2003


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20030825/f959ae34/attachment.htm>


More information about the Javascript mailing list