来自:http://stackoverflow.com/questions/3420004/
iframe中的js代码如下:

<SCRIPT LANGUAGE="JavaScript">
var url = (window.location != window.parent.location)?document.referrer:document.location;
document.write(url);
</SCRIPT>

Related Posts: iframe如何获取引用网站(父层)的地址 :