location.href = 'myRealPage.html'
This code loads myRealPage.html into the browser, but also keeps the original redirection page in the History list. Instead, try
Doing so replaces the redirection page in the browser's History list, saving site visitors some potential grief and minor cursing.
Source: Mike D. Jones
Viewed 3626 times