vendredi 27 février 2015

HTML5 Local Storage URL Prefix

I am using local storage for self-educational purposes and checking an checkbox if it is checked and closing the Bootstrap Modal.



$( "#olurmu" ).click(function() {
var isaret = document.getElementById("olurmu");
localStorage.setItem("olurmu", isaret.checked);
});

function isaretKontrol() {
if(localStorage.getItem("olurmu"))
{
var evet = localStorage.getItem("olurmu");
document.getElementById("olurmu").checked = evet;
}
}


The problem is localSotrage is working on www.mydomain.com but the thing is it is not working when i go to http://ift.tt/1AQSREp. Is there any way store the localstorage file all through my domain?


Aucun commentaire:

Enregistrer un commentaire