.contents() giving error:Permission denied to access property 'nodeType' in jquery-1.8.3
<p>I want to access iframe contents and add document object to it like </p>

<pre><code>$(iframe).contents().add(document).on(keydown,function(){})
</code></pre>

<p>It is working fine in <code>jquery-1.7</code> but it is giving <code>error:Permission denied to access property 'nodeType'</code></p>

<p>Any help is appreciated.</p>
