PrivilegeManager.enablePrivilege() (Method)

A method for granting an additional privilege to a user.


JavaScript - 1.2
Netscape - 4.0
JavaScript syntax:NmyPrivilegeManager.enablePrivilege(aPrivName)
Argument list:aPrivNameThe name of a privilege to be requested

The method should be called with a string argument containing the name of the privilege that is needed to gain access to the secure facilities of the browser.

Example code:

   // Request the file reading privilege"UniversalFileRead")

See also:Requesting privileges, UniversalBrowserAccess, UniversalBrowserRead, UniversalBrowserWrite, UniversalFileRead, UniversalPreferencesRead, UniversalPreferencesWrite, UniversalSendMail