FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

May be HTML, Javascript, or PHP, I don't know.

 


Diablosblizz
Okay, I am trying to get a "page" to close after maybe about 15 seconds or so. If possible, could I be able to change the time limit depending on the downloads? Also, I want the page to close automaticly, not after clicking a link.

If this is possible please reply back, I really need this!

Thanks!
sonam
I think only JavaScript can help you. Try this:

Code:
<script language="JavaScript">
window.setTimeout(close,10000);
</script>


Sonam
Diablosblizz
The 10000 is the closing part correct?

Thanks for the code again, ill try it out.

EDIT: THIS CODE DOES NOT WORK FOR IE7. (TEST IF YOU WANT AT worldofbnet.frih.net/test.shtml)!
sonam
Jeah, this is an old version. I don't know new Sad , try to search on google or yahoo.

Sonam
aningbo
interesting code but i dont think its recommended. why not use just the old one with the "close window" button.
KHO
Diablosblizz wrote:
The 10000 is the closing part correct?

Thanks for the code again, ill try it out.

EDIT: THIS CODE DOES NOT WORK FOR IE7. (TEST IF YOU WANT AT worldofbnet.frih.net/test.shtml)!
That's cause IE7 is chalked full of bugs ^__^
ahhh *resists urge to make this thread into a browser wars thread* >_<

Ok, now on to actually helping you.... wow.... ok, I just lost what small shred of respect I had for Microsoft.http://blogs.msdn.com/ie/archive/2006/08/25/719355.aspx.

Apparently, the reason IE7 wont support this (and many other functions) is because someone decided it was time that they made things better, this means thousands of web sites have become completely nonfunctional. All because someone decided this was "better"? Wow. (If you read that, it doesnt appear to have anything to do with the close function, but that is the same thing that happened with it.)

Hmmm.... IE7 also made a new thing that forces a pop-up confirmation for the window to close? Hmmm.....


--Important Part--
Ok, so it would seem that IE7 is goin to give you some grief, it can be expected. Now then, to perform this properly you will have to do a little tinkering, here are a few sites that you should review.

http://www.guyfromchennai.com/?p=18
http://www.developersdex.com/asp/message.asp?p=2978&r=5426935
http://www.codeproject.com/useritems/Immediate_Close__new_try_.asp


Im sorry, but I have no way of testing or developing any way that would be IE7 compatible, Im not willing to upgrade to that. I wish you the best of luck.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.