/** * Created by rosc007 on 21.02.2017. */ if(window.location != top.location) { // Reload the page inside the top window to prevent framing attacks. top.location = window.location; // Delete body content in case the statement above doesn't work for some reason. window.onload = function () { document.body.innerHTML = "Displaying this page inside a frame is not allowed." } }