Hi,
If your JavaScript is not in a chrome URL (i.e. installed as a part of your mozilla installation) you have to use Privilege Manager.
Is there a way of putting my html file into the chrome ? (I tried putting in the chrome directory and accessing it by chrome://file.html but that didn't work).
This is the statement that will enable your script to run properly.
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
Mozilla will prompt the user for enabling this privilege.
Doesn't work in my particular case :( although it's nice to know I can use the PrivilegeManager.
Thanks for your reply.
