self.location="tourl.asp?user="+location.href; 

解决方案 »

  1.   

    self.location="tourl.asp?user="+location.href; 
    我测试了这样写,可是在ie中仍然说我有错误,不给我转向.谢谢楼上的。
      

  2.   

    重新描述一下我的问题吧~
    我想在首页中利用如同 [email protected]这样的域名,通过asp解析,转向到其他域名.在myie中一切正常,可是就是ie行不通~!!!求教!!!
      

  3.   

    IE自动在[email protected]前面加上了"http://",所以你需要把钱追截取掉
    self.location="tourl.asp?user="+location.href.substring(7);
      

  4.   

    我再负责解析的asp中去掉了http://,现在最大的问题是,为什么在myie中可以正常,在ie中却不行。