Hello Friends,

   Sorry, I have a different opinion on this issue. I think that
self.close() and window.close() functions will not able to close
the window, which has been opened as part of a frame. For that you will need
to break frames, if you are trying to close
a window from itself.

I have tested the following code, so can try on at your end too and let me
know if you have any different viewpoint on this matter.

  <input type="button" value="close" onclick="doJob()">

function doJob()
{
if (window != top) top.location.href = location.href;
self.close();

}


Regards,
Sandeep



-----Original Message-----
From: Mendez Yanes JI [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 17, 2001 11:18 AM
Subject: Re: Help on close form


Hi Dick,

If I remember well maybe U can even do it from the same window using

self.close()

Hope it works
Joe

--- Oliver Wood <[EMAIL PROTECTED]> wrote:
> create the window.
>
> var newWin = open.window('link','name','params');
>
> to close this window
>
> newWin.close();
>
> hope this helps
>
> Oli
>
>
>
> --- Dick Wong <[EMAIL PROTECTED]> wrote: > When I
> click the "Search Button" in customer Master
> > form , it will pop up a
> > new windows ( A Frame Window) that allow me to input
> > the customer name and
> > then press the search button and display the result
> > in the lower part of
> > Frame Window.
> > My question is how can I close this frame form when
> > I choose one of the
> > customer in lower part of Frame window.
> >
> > I tried to use window.close() but it had no effect.
> >
> > Please help.
> >
> >
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to