- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>禁止“查看源文件”的网页</title>
- <meta http-equiv="content-Type" content="text/html;charset=gb2312">
- <!--把下面代码加到<head>与</head>之间-->
- <script language="javascript">
- function clear(){
- Source=document.body.firstChild.data;
- document.open();
- document.close();
- document.body.innerHTML=Source;
- }
- </script>
- </head>
- <!--把<body>改为-->
- <body onload="clear()">
- 点击IE工具栏上的“查看”-“查看源文件”试试!
- </body>
- </html>

