如何用JavaScript取得当前页面的URL、HTML源码和可见文本? 对于IE浏览器来说当前页面的URLwindow.location.hrefHTML源码document.all[1].innerHTML可见文本document.all[1].innerText 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 window.location.href是本地的地址,我要地址栏中的地址。document.all[1].innerHTMLdocument.all[1].innerText都不行啊 <script>alert(top.location.href)alert(document.documentElement.outerHTML)alert(document.body.innerText)</script> 你总要个body呀,不然,当然说没有对象<body>...</body> 奇怪,我是原来的程序弄掉了,现在重写的。原来似乎可以不要这个的,我是另一个htm文件去得到当前IE文档的内容,就像FlashGet那样。要不换成vbs也行。 解决了:external.menuArguments.document.documentElement.innerTextexternal.menuArguments.document.documentElement.innerHTML external.menuArguments.document.documentElement.innerTextexternal.menuArguments.document.documentElement.innerHTML [讨论]PHP积分下载问题 腾讯首页文章标题一行显示一个或多个怎么做的? MySQL数据库一般怎么备份? 这个段PHP代码问题出在哪里了,怎么没有返回值?? 数组问题 怎么用PHP来获取文件的创建时间啊? 10w条数据 用xml好还是直接读mysql 500分求答不是难题的难题! 怎样给下面这个form加入onSubmit="submitbutton.disabled=true" ? PHP Warning: Error while sending QUERY packet. PID=xx 关于GD库和绘图的问题,斑竹、大侠帮忙! 我不想做程序员了!!!!!!!!!
document.all[1].innerText都不行啊
alert(top.location.href)
alert(document.documentElement.outerHTML)
alert(document.body.innerText)
</script>
<body>
...
</body>
原来似乎可以不要这个的,我是另一个htm文件去得到当前IE文档的内容,就像FlashGet那样。要不换成vbs也行。
external.menuArguments.document.documentElement.innerHTML
external.menuArguments.document.documentElement.innerHTML