Believe it,do it!

Ideal is the beacon. Without ideal, there is no secure direction; without direction ,there is no life.
理想是指路明灯。没有理想,就没有坚定的方向;没有方向,就没有生活。
CTRL+T eclipse
posts - 35, comments - 3, trackbacks - 0, articles - 0
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

让页面看不到源码的JS

Posted on 2008-09-27 15:39 三羽 阅读(112) 评论(0)  编辑  收藏
<html>
<head>
<script>
function clear(){
Source
=document.body.firstChild.data;
document.open();
document.close();
document.title
="看不到源代码";
document.body.innerHTML
=Source;
}
</script>
</head>
<body onload=clear()>
<!--
<marquee>看得到源代码吗?</marquee>
-->
</body>
</html>

只有注册用户登录后才能发表评论。


网站导航: