Hi everyone,

I would like to retrieve some data from multiple pages and store them in an object in my Javascript funtion.

An example, my file would check files a.html, b.html and c.html. I have created three objects in my function. For each object, I would like to retrieve the innerHTML of a certain element in each of those files. For instance:
Code:
PseudoCode:
objA.data = a.html > getElementById('theElement').innerHTML;
objA.style = a.html > getElementsByTagName('style')[0].innerHTML;

objB.data = b.html > getElementById('theElement').innerHTML;
objB.style = b.html > getElementsByTagName('style')[0].innerHTML;
Is this possible? If so, does anyone have any pointers please?

Thanks,
Jordan