Syntax
navigator.preference(name)
navigator.preference(name, value)
The preference() method reads or sets any user preferences in the browser.
For security reasons, reading a preference with the preference() method requires the UniversalPreferencesRead privilege.
Setting a preference with this method requires the UniversalPreferencesWrite privilege.
Example of the preference method of the navigator object