The one justted posted uses client-side code, JavaScript, to re-set the location being displayed, effectively redirecting the page to another URL.
Being client-side it can be somewhat unreliable, seeing as clients are free to turn of JavaScript and ignore the code completely.
The one I posted uses server-side code to send the HTTP Refresh header, which tells the browser it should refresh the page after the specified amount of seconds using the URL provided.
This method will work on anything worth calling a browser, and I doubt many browsers even provide an option to turn it off.
They will both work with most clients, but I prefer the server-side version. It's less hassle and more reliable.
Last edited by Atli; Jun 26th, 2009 at 12:03 am. Reason: Fixed the header info... was thinking about the wrong one :)