Fancybox iframe type return value on close <p>I'm using fancxbox,it is possible to pass back a variable from fancybox child to parent.</p> <p>In the child page there is text field called <code>banner_width1</code> (<code>&lt;input name="banner_width" id="banner_width1" type="text" size="5" value="1000"/&gt;</code>)</p> <pre><code>'onClosed':function() { alert($("#banner_width1").val()); var x = $("#fancybox-frame").contentWindow.targetFunction(); alert(x.val()); } </code></pre>