有时候不希望别人看到你的网页的源代码怎么办?看下面的代码吧!

<html>
<head>
<title>彻底隐藏你HTML网页的源代码 title>
<script>
function clear() {
Source
=document.body.firstChild.data;
document.open();
document.close();
document.body.innerHTML
=Source;
}
script>
head>

<body onload=clear()>

body>
html>

你可能感兴趣的:(HTML)