下面的JS代码可以替换当前页面为指定的URL
<!DOCTYPE html>
<html>
<head>
<script>
function replaceDoc()
{
window.location.replace("http://www.75271.com")
}
</script>
</head>
<body>
<input type="button" value="Replace document" onclick="replaceDoc()">
</body>
</html>
