alert(parent.window.location.pathname); /xxxx
alert(parent.window.location.search); 获得参数 ?xxx=xxx
alert(parent.window.location.href);
http://xxzz/
如果不是用frame,直接去掉parent就可以
转载于:https://www.cnblogs.com/arix04/archive/2009/05/25/1488783.html