I have a form in option page for update a LocalStorage but need reload the extension for working.
option.html <html> <head> <title>Next Tag setting</title> <script type="text/javascript"> function save_options() { localStorage.setItem("grtag", document.getElementById("tag").value); //chrome.tabs.getSelected(null, function(tab) {chrome.tabs.remove (tab.id);}); } </script> </head> <body> <form name="form" action=> <input type="text" placeholder="your tag" id="tag"/> <button onclick="save_options()">Save</button> </form> </body> </html> background.html <html> <head> <script> var grurl = 'https://www.google.com/reader/next?go=nextauto&t='; value = localStorage.getItem("grtag"); chrome.browserAction.onClicked.addListener(function(tab) { chrome.tabs.update(tab.id, {url: grurl + "4022757919936136911" + "&label=" + value}); }); </script> </head> </html>
-- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to chromium-extensi...@googlegroups.com. To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.