对于IE浏览器来说当前页面的URL
window.location.href
HTML源码
document.all[1].innerHTML
可见文本
document.all[1].innerText

解决方案 »

  1.   

    window.location.href是本地的地址,我要地址栏中的地址。document.all[1].innerHTML
    document.all[1].innerText都不行啊
      

  2.   

    <script>
    alert(top.location.href)
    alert(document.documentElement.outerHTML)
    alert(document.body.innerText)
    </script>
      

  3.   

    你总要个body呀,不然,当然说没有对象
    <body>
    ...
    </body>
      

  4.   

    奇怪,我是原来的程序弄掉了,现在重写的。
    原来似乎可以不要这个的,我是另一个htm文件去得到当前IE文档的内容,就像FlashGet那样。要不换成vbs也行。
      

  5.   

    解决了:external.menuArguments.document.documentElement.innerText
    external.menuArguments.document.documentElement.innerHTML
      

  6.   

    external.menuArguments.document.documentElement.innerText
    external.menuArguments.document.documentElement.innerHTML