可以使用location
To load a different page into the current window or frame, assign the new page's URL string to the location.href property:
location.href=http://www.megacorp.com/products/framistan309.html;
location是window对象和document对像的属性,所以window.location和document.location是相同的,可以相互使用