Reputation: 21
Basically, I just want something not to run when a page is loaded into an iframe. Is there an easy way to do this?
Upvotes: 2
Views: 110
Reputation: 1039508
if (window != window.top) {
// the script runs in an iframe
}
Upvotes: 3