问题
How do you load a page in the same window via javascript?
回答1:
You set the location property of the window:
window.location.href = 'http://www.guffa.com/';
来源:https://stackoverflow.com/questions/874775/load-a-page-in-the-same-window-via-javascript