tags:

views:

20

answers:

1

Basically, I just want something not to run when a page is loaded into an iframe. Is there an easy way to do this?

+2  A: 
if (window != window.top) { 
    // the script runs in an iframe
}
Darin Dimitrov