开发者

JS command(s) to store constant bookmarklet variables in Internet Explorer?

Storing constant bookmarklet variables for IE8/9?

In Firefox you can permanently save (cross-domain) constant variables to the browser to be written/accessed via bookmarklets (i.e. not just cookie/session level) through the following JS:

var prefManager = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefBranch); prefManager.setCharPref("extensions.ename.var_name", var_value);

In Chrome you can do:

window.localStorage.setItem('var_name', var_value);

Does anyone know what 开发者_如何学Cthe equivalent command is for Internet Explorer please? (To enable a JS bookmarklet to permanently save an approved user request id.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜