Any access to the preferences mechanisms in a browser for any purpose other than reading them should be treated with some suspicion. It may be preferable to invite the user to adjust a preference setting rather than to modify it for them. You might affect the behavior of other pages inadvertently.
In Netscape, your script needs to be granted the UniversalPrefrencesWrite privilege before this call can be executed successfully.
See also: | UniversalPreferencesWrite |
Prev | Home | Next |
Navigator.preference() | Up | Navigator.securityPolicy |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |