Wordpress Themes, Wordpress snippets
function getParentUrl() { var isInIframe = (parent !== window), parentUrl = null; if (isInIframe) { parentUrl = document.referrer; } return parentUrl; }
No comments:
Post a Comment