This question already has an answer here:
How do I redirect to another webpage?
This works in all browsers:
window.location.href = '...';
If you wanted to change the page without it reflecting in the browser back history, you can do:
window.location.href = 'http://www.google.com';
window.location = 'http://www.google.com';
It seems that this is the correct way