<SCRIPT LANGUAGE="JavaScript"><!--
var s = window.location.href;
s = s.substr(s.lastIndexOf("/")+1);
alert(s);
//--></SCRIPT>

解决方案 »

  1.   

    <script language="JavaScript">
    <!--
    alert(location.href.replace(/.+\//g,''))
    //-->
    </script>
      

  2.   

    嗯。那是否告知怎么样把这个信息存储到ASP的Seesion变量中去呢?
      

  3.   

    http://expert.csdn.net/Expert/topic/1916/1916505.xml?temp=.5909235
      

  4.   

    fason这个不错,但是我的页面需要进行Javascript判断的话,这个ASP脚本就没有用处了我是用了你的
    <script language="JavaScript">
    <!--
    alert(location.href.replace(/.+\//g,''),'_top','')
    //-->
    </script>代码,但是需要更正一点,应该是alert(location.href.replace(/.+\//g,''),'_self','')