JS本页改变内容无后退

<html> 

<head> 
<meta httpequiv="
ContentType"

content
="text/html;
charset=utf8"
/>
<script> 
function createNewDoc() 
var newDoc=document.open("text/html","replace"
var txt="<html><body>hello </body></html>" 
newDoc.write(txt) 
newDoc.close() 
}
 
</script> 
</head> 
<body> 
<input type="button" value="submit" onClick="createNewDoc()"> 
</body> 

</html> 
原文地址:https://www.cnblogs.com/Love/p/1250717.html