Skip to content

Instantly share code, notes, and snippets.

@littlebtc
Created May 8, 2009 17:59
Show Gist options
  • Select an option

  • Save littlebtc/108904 to your computer and use it in GitHub Desktop.

Select an option

Save littlebtc/108904 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
<dialog id="mydialog" title="Dialog Example"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
buttons="accept,cancel"
buttonlabelcancel="Cancel"
buttonlabelaccept="Send"
ondialogaccept="alert('Thank you, ' + document.getElementById('name').value + '!');"
ondialogcancel="alert('canceled!');">
<dialogheader title="Hello!" description="Welcome to the my dialog!"/>
<vbox>
<label value="Please introduce yourself :)" />
<hbox>
<label value="Your Name:" control="name" accesskey="N" />
<textbox id="name" value="" />
</hbox>
</vbox>
</dialog>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment