Javascript - trying to locate an image
<p>I am not expert in javascript, so, excuse my lack of knowledge.</p>

<p>I am trying to interact with an image on a page on the web, to create some automation.</p>

<p>I need to click on that image using javascript, from a script.</p>

<p>I did everything to discover how to access that image and no success at all. The image is not responding to anything. I suppose I am not reaching the right object.</p>

<p>Trying to discover the object, I created a very simple script, that will scale every image on that page, to see at least if I can reach all img object.</p>

<p>This is the script</p>

<pre><code>for (i=0;i&lt;=100;i++) {
document.image[i].width.value = '300';
}
</code></pre>

<p>No changes at all.</p>

<p>Is the script correct? is that anything that may be preventing the image to respond from external scripts?</p>

<p>Any clues? thanks.</p>

<p><em><strong></em>___</strong> EDIT</p>

<p>the image I need to click is declared like this:</p>

<pre><code> &lt;div class="leaderboard-text"&gt;
          &lt;span id="addon-add-language-button"&gt;&lt;image class="ajaxListAddButtonEnabled" listId="localizationList" src="/itc/images/blue-add-language-button.png"&gt;&lt;image class="ajaxListAddButtonDisabled" listId="localizationList" style="display:none;" src="/itc/images/blue-add-language-button-disabled.png"&gt;&lt;/span&gt;
        &lt;/div&gt;
</code></pre>
