By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,775 Members | 1,306 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,775 IT Pros & Developers. It's quick & easy.

need help with timeout script

P: n/a
I want to be able to close a main window after a certain time

Can I do this in PHP or do I have to use JavaScript?
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi!

The thing you want to do is CLIENT-SIDE!!! No php there! :)
You can (as you already know) redirect the user using HEADER only.

Best regards.

Jul 17 '05 #2

P: n/a
As madmaster said, this is client side. A simple script to close the
window as soon as it opens:

<script type="text/javascript" language="javascript">
<!--
window.close();
//-->
</script>

Of course, there are plenty of time functions in js to control when
that happens.

Jul 17 '05 #3

P: n/a
Thanks.
da**********@hotmail.com wrote:
As madmaster said, this is client side. A simple script to close the
window as soon as it opens:

<script type="text/javascript" language="javascript">
<!--
window.close();
//-->
</script>

Of course, there are plenty of time functions in js to control when
that happens.

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.