The problem might be the code.
Here try this.
<html>
<body>
<script>
var newWindow = window.open();
newWindow.document.write("<form><input type=\"button\"
onClick=\"javascript:window.close();\" value=\"hello\"></form>");
</script>
</body>
</html>
It does what you want and it works on Netscape and IE just fine. Perhpas the
problem was just self.close() instead of window.close()?
Jayson Falkner
[EMAIL PROTECTED]
----- Original Message -----
From: "ramalingeswara sarma" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 09, 2000 7:35 PM
Subject: thanks JAYSON Re: **** new window problem
> hi jayson
> thanks for the reply.
> but i have some more problem the problem is that the window i open should
be
> closed by a button in the new window that i am opening so that is why i
had
> to use self.close().
>
> do you think the problem is because of self.close() or because of some
other
> reason
>
> any way thanks for the reply
>
> thanks in anticipation
> sarma
> ----- Original Message -----
> From: JSP Insider <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, November 25, 2000 4:47 AM
> Subject: Re: **** new window problem
>
>
> > Have you tried using:
> >
> > <script>
> > var newWindow = window.open();
> >
> > // insert your other relevant code here..
> >
> > newWindow.close();
> > </script>
> >
> > Use the parent window to close the child. I use this method and it works
> > fine for me.
> >
> > Jayson Falkner
> > [EMAIL PROTECTED]
> >
> > P.S. What part of this question involved JSP? :)
> >
> > ----- Original Message -----
> > From: "ramalingeswara sarma" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, November 08, 2000 8:28 PM
> > Subject: **** new window problem
> >
> >
> > > hi all
> > > i am having a small problem with a new window (browser
instance)
> > > that i am opening from a jsp file using javascript.
> > >
> > > the problem is that after i close the new window the mouse pointer
shows
> a
> > > small hourglass beside it, i am closing the window with self.close()
in
> > > javascript .
> > >
> > > can any one tell me what is the problem and please give me a solution
> > >
> > > thanks in anticipation
> > > sarma
> > >
> > >
> >
>
===========================================================================
> > > 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://java.sun.com/products/jsp/faq.html
> > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> >
> >
>
===========================================================================
> > 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://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> 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://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
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://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets