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