This Stack Overflow thread offers:
function inIframe () { try { return window.self !== window.top; } catch (e) { return true; } }
...which seems to work pretty good.
No comments:
Post a Comment