Ever tried to redirect a page from the server, while you are in an ajax call? well, you can't, oh wait - erase that, with Cjax yes you can.
Here is where this function is most useful. You can use it and it will redirect from the server or from anywhere you call it. If you just call it without parameters, it will refresh the page you are on.
You can redirect to a different url, or site, by using the location function.
ExamplesRedirect to a new url.