Firstly, my javascript knowledge is very very low and I'm struggling quite a bit hence the question. I understand there have been many similar questions, but what I need is for it to only use very basic javascript. So far I have:
JSON File:
var list=
[
{"title":"ObjectA",...
},
{"title":"ObjectB",...
}
]
I've managed to list them using:
function objects() {
for (a=0; a<list.length; a++) {
document.write(list[a].title);
}
}
However that puts all objects in one line. I know you can list them individually using something like:
function object0() {
document.write(list[0].title)
}
What I'm wondering is it is possible to list them using a for loop or something simple like that? Thanks in advance for any help.