Navigator.preference() (Method)

A mechanism for allowing signed scripts to set a preference value in Netscape .


JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
JavaScript syntax:-navigator.preference()
-navigator.preference(aName, aValue)
Argument list:aNameThe name of a preference
aValueA new value to store in a preference

This is not portable but may be necessary in some captive intranet situations where you know what the target client is going to be and have some control over it.

Although the method appears to be widely available, the values for specifying user preferences certainly have not been standardized and the security implications are also not common to all the platforms. You should be prepared to write some portability support code if you plan to deploy this functionality.


See also:UniversalPreferencesRead, UniversalPreferencesWrite