Automatically close lauching page without IE promt

T

Thang Nguyen

Hi,
my page contains an applet. When I click on a link on the page, the
applet will be launched.Now I need my page can be automatically closed
when I close my applet.I can call the script from my applet to do
this, but the poor thing is each time the script is called, IE will
prompt to ask "the page you are viewing try to close the window ..".
Is there any possible way for the browser not to prompt like that. I
only know that a closing a popup window will not askk anything, but I
don't know more than this. Any help is appreciated ;) !!!
 
K

kaeli

Hi,
my page contains an applet. When I click on a link on the page, the
applet will be launched.Now I need my page can be automatically closed
when I close my applet.I can call the script from my applet to do
this, but the poor thing is each time the script is called, IE will
prompt to ask "the page you are viewing try to close the window ..".
Is there any possible way for the browser not to prompt like that. I
only know that a closing a popup window will not askk anything, but I
don't know more than this. Any help is appreciated ;) !!!

No. If I navigate to your page, I'd be pretty pissed if you closed my
browser without asking.
This is why javascript (default security environment) can't do that.
There may be a workaround with security/trusted sites sort of thing, but
your average settings won't allow it, nor should they.

If this is for an intranet or CD application, use an HTA. You get much
more flexibility there.

--
 
T

Thomas 'PointedEars' Lahn

kaeli said:
Please show me how to close a window that a script did not open with NO
warning for IE.

Alas, there is a way to override the warning in some versions of IE
(it works with my Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
Q312461)):

top.opener = false;
top.close();

Of course nobody wants to do that.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top