Name

preference( ) — NN 4 IE n/a DOM n/a

Synopsis

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 enterprisewide deployment of Navigator. Consult the Netscape developer web site for further information about these preferences settings (http://developer.netscape.com/library/documentation/deplymt/jsprefs.htm).

Returned Value

Preference value in a variety of data types.

Parameters

name

The preference name as a string, such as general.always_load_images.

value

An optional value to set the named preference.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.