For some reason this isn't working?
I want to fill the ul#list
with some items, but it's not working.
var list = "";
for (var i = 0 ; i<=history.length; i++) {
list += "<li onclick=\"copyShortURL('"+history[i].shortURL+"');\"><div class=\"short\">"+history[i].shortURL+"</div><div class=\"long\">"+history[i].longURL+"</div></li>";
}
document.getElementById('list').innerHTML = list;
Could anyone tell me what's going wrong :( By this i mean it doesnt do anything, no list items are put into the list?
P.S. This is for mobilesafari only :)