H
Helpful person
Please note that I am a beginner at javascript.
I have written the following script that works fine.
photos = new Array();
photos.image = "image";
// photos.title(0) = "title"
document.write(photos.image);
However, I wish to define the propery photos.title as an array. When
I remove the comment // I get errors. How do I define
photos.title as an array?
Thanks in advance.
I have written the following script that works fine.
photos = new Array();
photos.image = "image";
// photos.title(0) = "title"
document.write(photos.image);
However, I wish to define the propery photos.title as an array. When
I remove the comment // I get errors. How do I define
photos.title as an array?
Thanks in advance.