A reproducible sample is attached below.
<zk> <window id="win1" height="400px" width="600px"> <button label="Show first dialog to start dialog with iframe" onClick="AnotherDialog.doModal(); AnotherDialog.setVisible(true);"/> </window> <window id="AnotherDialog" height="400px" width="600px" visible="false"> <button label="Show Dialog 1 with IFrame" onClick="mainDlg.doModal(); mainDlg.setVisible(true);" /> <button label="Close me " onClick="AnotherDialog.detach();" /> </window> <window width="700px" height="550px" style="border: 1px solid gray" title="pdf test for IE 10" id="mainDlg" visible="false" parent="${AnotherDialog}"> <window id="win2" title="load a pdf into frame, then close me!" width="650px" height="480px"> <vbox hflex="1" vflex="1"> <iframe id="iframe" src="http://www.zkoss.org" hflex="1" vflex="10" style="border: 1px solid gray" /> <button upload="true" label="Select pdf File" vflex="1"> <attribute name="onUpload"><![CDATA[ Object media = event.getMedia(); if (media != null) iframe.setContent(media); ]]></attribute> </button> </vbox> </window> <button label="Click for close iframe dialog" onClick='mainDlg.detach();'/> </window> </zk>