可以使用 document.documentelement.outerhtml 获取html
可以使用fso = new actinvexobject('Wscript.filesystemobject') 对象来保存,这个有安全问题,浏览器设置比较麻烦
你的需求 具体还得看需求和运行环境
其实 脚本有很强大的功能,但是也有很大局限性. 要看用在什么场合下.
很久没有用这个, 只能给你提供一个思路,具体代码还得你自己写.
<table width=100% cellpadding=0 cellspacing=0 border=0 > <script language="javascript">thisURL = document.URL; thisHREF = document.location.href; thisSLoc = self.location.href; thisDLoc = document.location; strwrite = "<tr><td valign=top>thisURL: </td><td>[" + thisURL + "]</td></tr>" strwrite += "<tr><td valign=top>thisHREF: </td><td>[" + thisHREF + "]</td></tr>" strwrite += "<tr><td valign=top>thisSLoc: </td><td>[" + thisSLoc + "]</td></tr>" strwrite += "<tr><td valign=top>thisDLoc: </td><td>[" + thisDLoc + "]</td></tr>" document.write( strwrite ); </script>thisDLoc = document.location; <BR> thisURL = document.URL; <BR> thisHREF = document.location.href; <BR> thisSLoc = self.location.href;<BR> <script language="javascript"> thisTLoc = top.location.href; thisPLoc = parent.document.location; thisTHost = top.location.hostname; thisHost = location.hostname; strwrite = "<tr><td valign=top>thisTLoc: </td><td>[" + thisTLoc + "]</td></tr>" strwrite += "<tr><td valign=top>thisPLoc: </td><td>[" + thisPLoc + "]<&#4......余下全文>>