A palette of colors from which a user may select by clicking on one of the grid cells.

<colorpicker/>
disabledcommand event will not fire. In the case of form elements, it will not be submitted. Do not set the attribute to true, as this will suggest you can set it to false to enable the element again, which is not the case.
disabled attribute is allowed only for form controls. Using it with an anchor tag (an <a> link) will have no effect.disabled property which, except for menus and menuitems, is normally preferred to use of the attribute, as it may need to update additional state.colorAn onchange attribute is an event listener to the object for the Event change. A change event is fired in different ways for different XUL Input Elements as listed below:
onchange| TextBox | When Enter key is pressed |
| Radio/Check Box | When the state is changed |
| Select List | When the selected item is changed |
The script context at this point can only access the following things:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window
id="findfile-window"
title="Find Files"
orient="horizontal"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="text/javascript">
function myFunction(e){
/*
Do something cool here or just say the below
*/
alert(e.target.nodeName);
}
</script>
<textbox id="find-text" onchange="return myFunction(event);"/>
</window>
preferencepreference. This attribute only has any effect when used inside a prefwindow. More information is available in the Preferences System article.tabindextab" key. Elements with a higher tabindex are later in the tab sequence.typebutton, the colorpicker is displayed as a button. When the user clicks the button, a popup appears for the user to select a color.
accessibleTypecoloropentrue if the popup for a button-type colorpicker is open. Set this property to true to open the popup or false to close the popup.value property gets and sets color attribute
nsIDOMXULControlElementThe onchange Event only fires if Attribute type is set to "button". You may use onclick when you are working with a plain colorpicker and need the currently selected color for example to display in a <textbox>.