加载新文档加载新文档<!DOCTYPE html><html><body> <h1>window.location 对象</h1> <input type="button" value="加载新的文档" onclick="newDoc()"> <script>function newDoc() { window.location.assign("http://www.yousite.com")}</script> </body></html>