<html>
<head>
<title>不讓你看原始碼</title>

<script>
function clear()
{
Source=document.body.innerHTML; //將網頁資料放到Source這個變數內
document.open(); //打開網頁文件
document.write("不讓你看"); //網頁會輸出不讓你看
document.close(); //關閉網頁文件
document.body.innerHTML=Source; //最後再將原內容輸出
}
</script>
</head>
<body onload=clear()>
原始碼內容保密
</body>
</html>

這個我試在chrome好像無法生效

arrow
arrow
    文章標籤
    javascript content lock
    全站熱搜

    痞客興 發表在 痞客邦 留言(0) 人氣()