Home > JavaScript > iFrame or not?

iFrame or not?

How to detect if our website is opened inside an iFrame?

if ( window != window.top ) { alert("I'm in a frame!"); }
Categories: JavaScript Tags:
Вижте всички статии от
Technology lover
Този автор е написал 156 статии