JS -Test, wenn ich in Iframe bin

function inIframe () {
    try {
        return window.self !== window.top;
    } catch (e) {
        return true;
    }
}
Abs Zarzis