This element is used to construct a step-by-step wizard found in some applications to guide users through a task. It is used for a window with several steps contained on several pages. This element provides the header and buttons along the bottom, and also handles navigation between the pages. Each page should be constructed using a wizardpage. The pages are displayed in the order that they are placed in the wizard, unless you use the next and pageid attributes on the pages to change the sequence. The wizard will rendered in a manner suitable for the user's selected theme and platform. In newer versions of Mozilla, a statusbar may be placed directly inside the wizard element which will be shared among all pages.
More information is available in the XUL tutorial.
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<wizard id="theWizard" title="Secret Code Wizard"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script>
function checkCode(){
document.getElementById('theWizard').canAdvance = (document.getElementById('secretCode').value == "cabbage");
}
</script>
<wizardpage onpageshow="checkCode();">
<label value="Enter the secret code:"/>
<textbox id="secretCode" onkeyup="checkCode();"/>
</wizardpage>
<wizardpage>
<label value="That is the correct secret code."/>
</wizardpage>
</wizard>
activetitlebarcolorinactivetitlebarcolorcanCancel property to indicate to the user (by disabling the Cancel button) that they cannot canpagesteptitlewindowtypeValues for window type as found on MXR: http://mxr.mozilla.org/mozilla-release/search?string=windowtype
navigator:browser - Looks like if window has gBrowser it has this window type
devtools:scratchpad - Scratchpad windows
navigator:view-source - The view source windows
canAdvancetrue if the user can press the Next button to go to the next page. If this property is false, the user cannot navigate to the next page. Set this property to true to indicate that the user can go to the next page. Set to false to disallow moving to the next page. This has the effect of enabling or disabling the Next button, or, on the last page of the wizard, the Finish button.canRewindtrue if the user can press the Back button to go to the previous page. If this property is false, the user cannot navigate to the previous page. Set this property to true to indicate that the user can go back a page. Set to false to disallow moving to the previous page. This has the effect of enabling or disabling the Back button.currentPagewizardpage elementwizardpage element that is currently displayed. You can modify this value to change the current page.onFirstPagetrue if the user is on the first page, which may or may not be the first index.onLastPagetrue if the user is on the last page of the wizard.pageIndexpageSteppageIndex, because pages are not necessarily navigated in order.wizardPageswizardpage elementswizardpage elements in the wizard.
advance( pageID )canAdvance property must be set to true for the page to be changed. The pageID argument allows you to specify the index of the page to which to jump. Supply null as the argument to go to the next page in the sequence.cancel()getButton( type )button element in the dialog corresponding to the given type.getPageById( pageID )wizardpage elementwizardpage element corresponding to the specified pageID.goTo( pageID )canAdvance or canRewind.rewind()canRewind property must be set to true for the page to be changed.