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

  • SEARCH
  • Home
  • 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 8357963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:39:16+00:00 2026-06-09T10:39:16+00:00

I am trying to show a loading image when a users click a link

  • 0

I am trying to show a loading image when a users click a link that will show a large image in the same page.

I was wondering what’s best way to detect image loading WHILE the page has been loaded already (so window.onload() doesn’t work).

  • 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-06-09T10:39:18+00:00Added an answer on June 9, 2026 at 10:39 am

    Load the image with JavaScript and then you can use the image’s onLoad attribute:

    Image1 = new Image();
    Image1.src = 'photo.gif';
    
    /* Code here to display loading hour glass etc */
    
    Image1.onload = function() {
                               /* Image has loaded here */
                            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my android application I am trying to show a Loading... text which will
I'm trying to show a small loading image during a slow operation with jQuery
I am trying to show a loading image while my ajax call is running,
I'm trying to display an image (.gif) for page loading in html page until
I'm trying to show loading mask while loading image inside the modal dialog in
I´m trying to have a loading image while waiting for the server to generate
I am trying to something simple -- make a jQuery script that will wait
I've been trying to get image-loading dynamically- size dynamically to set wrapper div height
i want that when LightFace will be shown then a busy image should come
I am trying to create a options button above my scroll view that will

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.