js获得请求参数,地址

alert(parent.window.location.pathname);   /xxxx
  alert(parent.window.location.search);      获得参数 ?xxx=xxx
  alert(parent.window.location.href);    http://xxzz/

如果不是用frame,直接去掉parent就可以
posted @ 2009-05-25 12:00  arix04  阅读(960)  评论(0编辑  收藏  举报