with
var prefs =
Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("your_extension_name.");
prefs.setCharPref("your.sub.path.to.pref", "foo");
and
var str = prefs.getCharPref("your.sub.path.to.pref");
you can store and retrieve value from session to session.
Didier
Amin <[EMAIL PROTECTED]> wrote: is there any easy method to save a string in my
extension so i can show it or use it next time that user open browser ?
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners