各位大神,怎么用javascript实现获取当前页面所有内容然后存到指定目录下
要求保存为.html文件,或者怎么用js实现将当前页面内容导入到.doc文件,不要用ExcelSheet=newActiveXObject('Word.Applicati...
要求保存为.html文件,
或者怎么用js实现将当前页面内容导入到.doc文件,不要用ExcelSheet = new ActiveXObject('Word.Application');这种方法! 展开
或者怎么用js实现将当前页面内容导入到.doc文件,不要用ExcelSheet = new ActiveXObject('Word.Application');这种方法! 展开
2个回答
展开全部
<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......余下全文>>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询