Quote Originally Posted by ksz View Post
I would like to try it, but I need to know:
1- What goes in "http://example.com/"
Whatever page you want it to replace the current page with.

Quote Originally Posted by ksz View Post
2- Which goes first:
document.documentElement.write('<meta http-equiv="X-UA-Compatible" content="IE=edge" />')
then
document.write('<meta http-equiv="refresh" content="'+time+'; url=http://example.com/">')
or the other way?
The refresh isn't going to reload the page immediately even if you specify a time of zero so it can go second.

Quote Originally Posted by ksz View Post
3- What does "refresh" really do? Does it reload the page's code, by reading the code from its source again, or just refreshes the screen based on the already loaded code?
It loads a completely different page in place of the current one. You can't use it to reload the current page as that would create an infinite loop.

One other thing to note is that the http-equiv refresh can be disabled in the browser so not everyone will be transferred to the next page. If you use the http location header to do the redirect to the new page instead then it can't be disabled in the browser and the current page doesn't need to be sent to the browser at all.