It comes in useful when combined with other scripts or for if you wanted to redirect only people with JavaScript enabled browsers to a special JavaScript rich page:
code:
document.location = URL;
to do this with a delay:
code:
setTimeout("this.location = 'URL' ",1000);
and to replace the page (the page being replaced won't appear in the history and so the back button skips it):