subdialog2.xhtml (894B)
1 <?xml version="1.0"?> 2 3 <!-- Any copyright is dedicated to the Public Domain. 4 - http://creativecommons.org/publicdomain/zero/1.0/ --> 5 6 <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> 7 8 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 9 xmlns:html="http://www.w3.org/1999/xhtml" 10 title="Sample sub-dialog #2" style="width: 32em; height: 5em;" 11 onload="document.getElementById('textbox').focus();"> 12 <dialog id="subDialog"> 13 <script> 14 document.addEventListener("dialogaccept", acceptSubdialog); 15 function acceptSubdialog() { 16 window.arguments[0].acceptCount++; 17 } 18 </script> 19 20 <description id="desc">A sample sub-dialog for testing</description> 21 22 <html:input id="textbox" value="Default text" /> 23 24 <separator class="thin"/> 25 26 <button oncommand="window.close();" label="Close" /> 27 28 </dialog> 29 </window>