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