one.html
location.href="tow.html?url="+location.href;tow.html
u=location.href.split("url=");
alert(u[1]);or tow.html
alert(document.referrer);//或许不可用

解决方案 »

  1.   

    放在HIDDEN里面,POST过去。假如要用GET的方式,记住一定要用URLENCODE。
      

  2.   

    谢谢我的回答,什么叫URLENCODE,如果我以GET方式传过去,我怎么ENCODE呢?
    望指点!
      

  3.   

    可以使用javascript的escape函数。比如,上面写的例子。one.html
    location.href="tow.html?url="+escape(location.href);
      

  4.   

    IE里面还有encodeURI 和encodeURIComponent 方法。其实是为了防止一些特殊的符号,空格等等,会断掉URL。