Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6608521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:37:07+00:00 2026-05-25T19:37:07+00:00

I am not expert in javascript, so, excuse my lack of knowledge. I am

  • 0

I am not expert in javascript, so, excuse my lack of knowledge.

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

I need to click on that image using javascript, from a script.

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.

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.

This is the script

for (i=0;i<=100;i++) {
document.image[i].width.value = '300';
}

No changes at all.

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

Any clues? thanks.

___ EDIT

the image I need to click is declared like this:

 <div class="leaderboard-text">
          <span id="addon-add-language-button"><image class="ajaxListAddButtonEnabled" listId="localizationList" src="/itc/images/blue-add-language-button.png"><image class="ajaxListAddButtonDisabled" listId="localizationList" style="display:none;" src="/itc/images/blue-add-language-button-disabled.png"></span>
        </div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:37:08+00:00Added an answer on May 25, 2026 at 7:37 pm

    You missed an ‘s’ in images and some other things.

    for (i=0, lughez = document.images.length; i<lughez ; i++) {
        document.images[i].width= '300';
    }
    

    but if the image has an id you could do:

    document.getElementById('id').click()
    

    to click your image where ‘id’ is the id you are using

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to set up some exotic PHP code (I'm not an expert), and
Not a SFDC expert but need to integrate a web form hosted in SFDC.
$(document).ready(function() { $(span.link).mouseover(function(e){ $(this.children).css(display,inline); }); }); I'm not a javascript expert, but I've cobbled
I am not an expert web-dev so please bear with me here. I would
i need to convert a Utf-16BE in ISO-8859-1 in PHP (i'm not an expert
I didn't write the following code and I am not a Javascript expert. So
Disclaimer: I am anything but a Javascript expert, so I'm not even sure if
I'm no Javascript expert and I'm having problems trying to glue together the various
i'm developing a website, but i'm not an expert when it comes to javascript.
How do I create some simple ajax rating like there is on this page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.