<html>
<head>
<script type="text/javascript">
function newDoc()
{
window.location.assign("https://www.w3school.org.cn")
}
</script>
</head>
<body>
<input type="button" value="Load new document" onclick="newDoc()" />
</body>
</html>