1 2 3 4 5 6 7 8
// tests if page is iframed // github.com/Modernizr/Modernizr/issues/242 Modernizr.addTest('framed', function(){ return window.location != top.location; });