View Full Version : Close.Window()

01-20-2003, 05:33 PM
I was wondering if there was a way to open up a page and after let say 15 seconds the window would automatically close?

Any help will be greatly appreciated,


01-20-2003, 05:44 PM
<script type="text/javascript">

however i think you will get a confirmation "are you sure you want to close window?" message

01-20-2003, 06:17 PM
Yep, you're right

Is there a way to bypass that message?

01-20-2003, 07:35 PM
Originally posted by Stoffel
Yep, you're right

Is there a way to bypass that message?


Cathy McK
01-20-2003, 11:38 PM
I believe I have read on this website previously, that if you open the new window as a pop up rather than a new window, you do not get that message when the pop up closes. I have seen here some free scripts that show you how to do exactly what you are asking - you simply nominate the amount of time to elapse before the pop-up window closes automatically. You can specify the size of the pop up window, and what attributes (if any) you want shown in the window.

Graeme Hackston
01-20-2003, 11:59 PM
Actually, with a slight modification of zoobie's script from here:


it is possible:

<title>Self Close</title>
function bye() {
self.opener = this;

01-21-2003, 04:22 AM
yeah, it works! I think that I will not be so categorical in the future :o

01-21-2003, 05:55 AM
hey borgtex there is a way to close a window without a message, it uses the active X controls, and I forget who, but somebody else in this forum knows how, ill reasearch this, and be back with you in short time

01-21-2003, 07:33 PM
I implemented the following code:

<script type="text/javascript">

But as someone stated before (I think), that you do not get the confirmation if you use it conjuction with a popup window. That is currently how I am using and I do not get the Confirmation. FYI


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum