That is interesting - I don't get a hang and I cannot duplicate that either.
--
Anil Gupte
k.e.e.n
www.keeninc.net www.icinema.com www.wizo.tv.
Pune, India
+91-20/65216198
Milwaukee, WI
+1-414/431-8775
"kimiraikkonen" <ki*************@gmail.comwrote in message
news:a3**********************************@27g2000h sf.googlegroups.com...
On May 30, 11:45 am, "Anil Gupe/keen inc." <anil-l...@icinema.com>
wrote:
I have an embedded browser in which the user does some stuff (PayPal
payment
actually). When done, I redirect to a page that contains the following
JavaScript
<tr vAlign="top">
<td> </td>
<td<a href="javascript: self.close ()">Close this Window</a></td>
<td> </td>
</tr>
When someone clicks the link, it closes my entire application! That is,
it
closes the Windows Forms Application in which this WebBrowser control is
embedded. Is there a better way to do this so my application does not
exit
as well?
Thanx in advance,
--
Anil Gupte
k.e.e.nwww.keeninc.netwww.icinema.comwww.wizo.tv.
Pune, India
+91-20/65216198
Milwaukee, WI
+1-414/431-8775
Anil,
I tried to put the line in a plain html file:
<a href="javascript
: self.close()">Close this Window</a>
And called this page from a webbrowser control which is embedded in a
winform, but after "close" confirmation it doesn't close the
application, it HANGS the application, the form's display is distorted
like a not responding application.
Thanks,
Onur Güzel