[thelist] How to auto close an Internet explorer window /page

aboodman at youngpup.net aboodman at youngpup.net
Tue Sep 24 13:42:12 CDT 2002


Hi Jim, I sent this message to the list, but it's rejected it because I'm
on a website accessing my POP account for some reason.

Anyway. Hope this helps.

The reason you're getting the warning is because javascript can only close
windows unprompted that it has opened. You can get around the problem by
making your desktop link actually execute javascript to open the window,
instead of opening it directly.

I tested it by typing the following code into my IE URL bar, and dragging
the little IE icon to it's left to my desktop.

javascript:void(window.open('http://www.youngpup.net/','',''));

Good luck with that,

--
Aaron Boodman
aaron | www @ youngpup.net



Original Message:
-----------------
From: Jim Rhodes, KF4GL Jim at JimRhodes.Net
Date: Tue, 24 Sep 2002 13:02:36 -0400
To: thelist at lists.evolt.org
Subject: Re: [thelist] How to auto close an  Internet explorer window /page


--
[ Picked text/plain from multipart/alternative ]
This works great when launching from a web site.  When I launch a link from
a shortcut on the desktop it will then give me a Microsoft Internet
Explorer dialog box stating "The web page you are viewing is trying to
close the window.  Do you want to close this window?  Yes / No.

Is there a way to have the window close automatically from a shortcut on
the desktop?

Thank you,

Jim


At 10:34 PM 09/23/2002 +0200, you wrote:
>Quick afterthought:
>
>This will work too (and it's a lot shorter):
>
><script type="text/javascript">
><!--
>function init() {
>         setInterval(self.close, 5000);
>}
>onload = init;
>//-->
></script>
>
>
>--
>/nik
>
>--
>For unsubscribe and other options, including
>the Tip Harvester and archive of thelist go to:
>http://lists.evolt.org Workers of the Web, evolt !




Jim Rhodes
Email 1: Jim at JimRhodes.Net
Email 2: KF4GL at JimRhodes.Net
Email 3: KF4GL at arrl.net
Web Site:  http://www.JimRhodes.Net







--

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .





More information about the thelist mailing list