[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4284: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4286: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4287: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4288: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
www.dhtmlgoodies.com • View topic - Auto-close window not working in Safari
Advertisement

Auto-close window not working in Safari

Moderators: Calcifer, slothy

Auto-close window not working in Safari

Postby molar » Sat Sep 30, 2006 2:10 pm

I have tried a few different methods of having a window auto-close.

This is one of them that is simple and effective:

<script language="JavaScript">
<!--
function closeWin(thetime) {
setTimeout("window.close()", thetime);
}
//-->
</script>
molar
 
Posts: 5
Joined: Sat Sep 30, 2006 2:05 pm

Postby molar » Sat Sep 30, 2006 2:11 pm

Sorry. Got cut off...

I have tried a few different methods of having a window auto-close.

This is one of them that is simple and effective:

<script language="JavaScript">
<!--
function closeWin(thetime) {
setTimeout("window.close()", thetime);
}
//-->
</script>
molar
 
Posts: 5
Joined: Sat Sep 30, 2006 2:05 pm

Postby molar » Sat Sep 30, 2006 2:13 pm

Damn. My competence seems quite low at this moment.

The remaining text:
molar
 
Posts: 5
Joined: Sat Sep 30, 2006 2:05 pm

Postby molar » Sat Sep 30, 2006 2:14 pm

Works in Firefox but not in Safari. The same goes for my other varations. Does anyone know of a method to auto-close a window for Safari as well?

Thanks.
molar
 
Posts: 5
Joined: Sat Sep 30, 2006 2:05 pm

Postby Batalf » Sat Sep 30, 2006 3:30 pm

Hello Molar

Welcome to the forum :D

window.close()

or

self.close()

should work in Safarai 2. I have heard of problems in Safari 1 with window.close, but that was sorted out in Safari 2.

Which Safari version are you using?
Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby molar » Sat Sep 30, 2006 8:21 pm

Hello. Thanks.

When I got to testing it in Safari 1.3, that's when I noticed the probem. Personally, I'm on OS X.3.9 and you need Tiger to upgrade to Safari 2.

It's the users I'm worried about, though. I might just leave the JavaScript as is (with window.close()) and hope for the best.

Thanks.
molar
 
Posts: 5
Joined: Sat Sep 30, 2006 2:05 pm


Return to Javascript

Who is online

Users browsing this forum: No registered users and 2 guests

cron