How to check if a page is in an iFrame - 7-Views
How to check if a page is in an iFrame
function inIframe () { try { return window.self !== window.top; } catch (e) { return true; } }
function inIframe () { try { return window.self !== window.top; } catch (e) { return true; } }