js获取iframe结构中父页面来路
在iframe的子页面中获取,如下js
window.onload = function(){ document.getElementById("fparent").value = top.location.href; document.getElementById("fparentreferrer").value = opener?opener.location.href:(top.document.referrer?top.document.referrer:top.location.href); }