<!DOCTYPE html>
<html>
<head>
<script>
function newDoc()
{
window.location.assign("//www.w3xue.com")
}
</script>
</head>
<body>
<input type="button" value="加载新文档" onclick="newDoc()">
</body>
</html>