Is it possible to set a timeout value for functions or URL connections in Java?
Printable View
Is it possible to set a timeout value for functions or URL connections in Java?
I dont know exactly what you mean.
Do you mean the setTimeout() function for JavaScript?
are you looking for a redirect? Or a script that just times out after a period of time?
Code:<HTML>
<BODY onLoad="window.setTimeout("window.url.href='main.html'",5000)">
redirecting in 5 seconds....
</BODY>
</HTML>
there is also a meta tag to do a redirect that is shorter but i can't seem to locate it at the moment... :(
ok.. so it's not shorter, but here it is...
Code:
<META HTTP-EQUIV="Refresh" CONTENT="3;URL=http://www.some.org/some.html">
Use the meta tag, it is more portable. Just damn hard to remember.
OMG... we agree on something... sorry.. i'm carrying threads beyond their bounds...
*whew*
ok, i'm done with cheap shots for today... i'm outta here...