3 <!-- Any copyright is dedicated to the Public Domain.
4 - http://creativecommons.org/publicdomain/zero/1.0/ -->
6 <?xml-stylesheet href=
"chrome://global/skin/global.css" type=
"text/css"?>
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">
14 document.addEventListener(
"dialogaccept", acceptSubdialog);
15 function acceptSubdialog() {
16 window.arguments[
0].acceptCount++;
20 <description id=
"desc">A sample sub-dialog for testing
</description>
22 <html:input id=
"textbox" value=
"Default text" />
24 <separator class=
"thin"/>
26 <button oncommand=
"window.close();" label=
"Close" />