value="B" id="popup-B"> <label for="popup-B">Popup B</label> <button type="button" id="save">Save</button> </form> </body> </html> // options.js // Save the popup value to the storage document.getElementById("save").addEventListener("click", function() { var popup = ...