标签:
function getParentUrl() {
var isInIframe = (parent !== window), //检测是否该页面是否在iframe中
parentUrl = null;
if (isInIframe) {
parentUrl = document.referrer;
}
return parentUrl;
}
标签:
原文地址:http://www.cnblogs.com/chuangweili/p/5162742.html