Javascript Close

Results 1 to 2 of 2

Thread: Javascript Close

  1. #1
    Join Date
    Dec 1969

    Default Javascript Close

    The window has 2 frames, one for menu, and the other to display details. If I try to close the window completely, using a link from details frame using "self.close();", it returns an error. <BR>Is closing not possible for a window with multiple frames ??<BR><BR>Thanks in advance for your help.<BR>

  2. #2
    Join Date
    Dec 1969

    Default self *is* the frame...

    ...when you invoke it from inside a frame.<BR><BR>Use <BR> parent.close();<BR>or<BR> self.parent.close();<BR>to close the entire window.<BR><BR>

Posting Permissions

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