Hi All,
Just a quick question, which should have a simple answer...
Can I have a document with three images with the same name, and
reference those images individually.
ie:
<img name="picture" src="file1.jpg" >
<img name="picture" src="file2.jpg" >
<img name="picture" src="file3.jpg" >
Would I be able to refer to 'document.pictu re[2].src' and retrieve
'file3.jpg'?
I have tried this without success, and am hoping that you can educate
me on whether this is just poor syntax on my part, or whether I am
simply expecting too much of JavaScript...
Thanks
Luke
Just a quick question, which should have a simple answer...
Can I have a document with three images with the same name, and
reference those images individually.
ie:
<img name="picture" src="file1.jpg" >
<img name="picture" src="file2.jpg" >
<img name="picture" src="file3.jpg" >
Would I be able to refer to 'document.pictu re[2].src' and retrieve
'file3.jpg'?
I have tried this without success, and am hoping that you can educate
me on whether this is just poor syntax on my part, or whether I am
simply expecting too much of JavaScript...
Thanks
Luke
Comment