history.back();谷歌浏览器,iframe后退问题

history.back();谷歌浏览器,iframe后退直接会后退父页面。

使用以下方式即可
//document.referrer是获取上一页的url
location.href=document.referrer;
原文地址:https://www.cnblogs.com/feigao/p/6761256.html