Javascript Reference
Categories: navigator

javascript navigator preference( )

@March 15, 2008, 1:22 a.m.
preference( )Firefox/Netscape/NN 4 IE n/a Chrome/Safari/DOM n/a  

preference(name[, value])

  

By way of signed scripts in Navigator 4, you can access a wide variety of user preferences settings. These include even the most detailed items, such as whether the user has elected to download images or whether style sheets are enabled. Most of these settings are intended for scripts used by network administrators to install and control the user settings of enterprise-wide deployment of Navigator. Consult the Netscape developer web site for further information about these preferences settings (http://developer.netscape.com/docs/manuals/communicator/preferences/). Netscape 6 throws a security exception when invoking this method (even with signed scripts), but the method works with signed scripts in Netscape 7.

 
Parameters
 
  • The preference name as a string, such as general.always_load_images.
  • An optional value to set the named preference.
 
Returned Value

Preference value in a variety of data types.


Powered by Linode.