 <p>If the editor is in an iframe, you need to target the <code>top</code> window:</p> <pre><code>window.top.location = "http://"+url+""; </code></pre> <p>You should also make sure that the editor accept script tags (not all editors do).</p>