|
查看源码 樱木花盗 发表于 2007-4-24 5:34:46 |
转载:1v1.name
今天才发现IE的查看源码和Inetnet选项里的HTML编辑器是两回事,下面的代码是用EMEDITOR查看源码
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source Editor] [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\Editor Name] @="C:\\Program Files\\EmEditor\\EMEDHTML.EXE"
如果用想用默认的记事本查看源码,把View Source Editor项删除就行了。EMEDITOR不能查看USASCII编码。会被自动转换 今天抓到一个网马。查看源码的时候发现是空的。原来用了Window.onload来处理 <script type="text/javascript"> function init(){ document.write (""); } window.onload=init; </script>
如果要看源码,可以用火狐,或者用傲游,在傲游设置里有一个下载的选项,把里面的允许 Scripts去了。就可以查看源码了,IE里应该也有这禁用脚本的选项,米有找,有心人自已找吧
再给个Mozilla的代码
<script type="text/javascript"> // for Mozilla browsers if (document.addEventListener) { document.addEventListener("DOMContentLoaded", function(){document.write ("");}, null); } </script> |
|
发表评论:
|