Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at

Example preferences dialog

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<prefwindow id="stockwatcher2-prefs"
     title="StockWatcher 2 Options"
<prefpane id="sw2-stock-pane" label="Stock Settings">
    <preference id="pref_symbol" name="stockwatcher2.symbol" type="string"/>
  <hbox align="center">
    <label control="symbol" value="Stock to watch: "/>
    <textbox preference="pref_symbol" id="symbol" maxlength="4"/>

See also

Document Tags and Contributors

 Contributors to this page: ethertank, Sheppy, leuqarte, anakpintar, Piro, Mossop, Nickolay, 20after4, Dria, S280Z28
 Last updated by: ethertank,