The notification is used to display an informative message. It will normally be used as part of a notificationbox. The box includes a button which the user can use to close the box.
<notification label="This is a warning"/>
- Type: one of the values below
- Indicates the type of notification, determined from the priority.
- a notification that is of lesser importance.
- a normal warning notification.
- a critical notification.
- Type: string
- The string attribute allows you to associate a data value with an element. It is not used for any specific purpose, but you can access it with a script for your own use. Be aware, however, that some elements, such as textbox will display the value visually, so in order to merely associate data with an element, you could 1) Use another attribute like "value2" or "data-myAtt" (as in the HTML5 draft), as XUL does not require validation (less future-proof); 2) Use setAttributeNS() to put custom attributes in a non-XUL namespace (serializable and future-proof); 3) Use setUserData() (future-proof and clean, but not easily serializable). For user editable
menulistelements, the contents, as visible to the user, are read and set using the Menulist.value syntax. For those elements, setAttribute("value", myValue) and getAttribute("value") do not access or affect the contents displayed to the user.
- Type: integer
- A value indicating the type of accessibility object for the element.
- Type: string
Gets and sets the value of the
textboxand user editable
menulistelements, the contents, as visible to the user, are read and set using the
Textbox.valueand Menulist.value syntax.
- Return type: no return value
- Closes the notification or findbar and removes it from its enclosing