View Full Version : HELP: window.close doesnt close, WHY?!
head_0n
07-16-2002, 06:00 PM
:mad: :mad: :mad:
i hate when this happens!!!!
why doesn't onload="setTimeout(window.close, 5000)" close my window, using MAC OS browsers?!
aaaaaaahhh i'm really tired of this multiplatform behaviourism
please give me some clue.
sorry about my mad-mood ;)
abel.
ecnarongi
07-16-2002, 06:08 PM
you can try splitting it up
onLoad="closethis()"
somewhere in the head
function cwin()
{ self.close() }
function closethis() { setTimeout('cwin()' ,5000) }
this seems to work fine for me hope this helps.
tamienne
07-16-2002, 06:11 PM
I do believe all you need to do is add () after your window.close
you might need single quotes around it too since you have it in a setTimeOut. So,
onLoad="setTimeout('window.close()',5000)"
head_0n
07-16-2002, 07:02 PM
tamienne:
by using "()" the window closes immediatly without the time set.
ecnarongi:
why do i have to recourse to a function to make it happen?! what's wrong with the simple javascript event using MAC OS?
isn't onLoad="setTimeout(window.close, 5000)" /onLoad="setTimeout(self.close, 5000)" == to your function?!
well thanks both,
abel.
(relaxed now! :thumbsup: )
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.