Go2ticket/go2ticket-firefox/options/options.js
Clément CHABANNE (Perso) b7eeb63eb1 v 1.0
2020-07-15 12:01:27 +02:00

12 lines
295 B
JavaScript

function save_options() {
var url = document.getElementById('url').value;
localStorage.setItem("url", url);
alert(url);
}
function url()
{
document.getElementById("url").value=localStorage.getItem("url");
}
document.getElementById('save').addEventListener('click', save_options);
url();