清空源代码后刷新页面不显示
<html>
<head>
<script text=java/script>
function clear(){
Source=document.body.firstChild.data;
document.open();
document.close();
document.body.innerHTML=Source;
}
</script>
</head>
<body onload=clear()>
<!--
1231413413
<div>
<p>我是div</p>
</div>
-->
</body>
</html>
上面是网上搜出来的查看清空源代码的js代码,但是这个页面一刷新我想显示出来的内容也没有了,能解决么?