jQuery Frame Breaker by Array of Domains <p>Using jQuery and an array of domains, I would like to create a frame breaker. I'd like to evaluate the top frame domain and if it's one of the domains in the array, then break it.</p> <pre><code>var domains = ["zoot.li", "domain.com"]; if ( jQuery.inArray( top.location.host, domains ) &gt; -1 ) { top.location.href = document.location.href ; } </code></pre> <p>It doesn't appear to be working, though. Any ideas?</p>