不知道你问的是哪个
document.location.href 
document.location.host
document.location.pathname

解决方案 »

  1.   

    就是得到http://localhost,是哪个呢?能详细说说三个函数的区别吗?
      

  2.   

    Request.ServerVariables("http_host")给分吧~~~~~~这个东西我一般不告诉别人--------哈哈
      

  3.   

    Request.ServerVariables("http_host")给分吧~~~~~~这个东西我一般不告诉别人--------哈哈呵呵,太晕哦,这个谁都知道的哦。
      

  4.   

    to aotianlong(傲天龙=初中没毕业) 你知道别人就一定知道吗?jh
      

  5.   

    document.location.href ,document.location.pathname,document.URL得到的都是这个:
    D:\ptc\WindChill\codebase\ext\au\Test\tesst.HTML
    我要得到的是别人可以访问的本机的url.
    Request.ServerVariables("http_host")这个东西怎么用,没弄明白!
      

  6.   

    Request.ServerVariables("http_host")给分吧~~~~~~这个东西我一般不告诉别人--------哈哈
    =================================================
    网络共享呀, 其实这个在ASP里已经用得很烂了, 别抱着根稻草当金条!获得本页url的request.servervariables("")集合
    <%
    Response.Write "<TABLE border=1><!-- Table Header --><TR><TD><B>Variables</B></TD><TD><B>Value</B></TD></TR>"
    for each ob in Request.ServerVariables
    Response.Write "<TR><TD>"&ob&"</TD><TD>"&Request.ServerVariables(ob)&"</TD></TR>"
    next
    Response.Write "</TABLE>"
    %>
      

  7.   

    faint 啊!!忘了说了,不让写jsp asp只能写静态的html所以希望找到一个javascript来完成这个功能!