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 7723749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:31:13+00:00 2026-06-01T04:31:13+00:00

How can i stop progress bar gif image when i stopped processing by clicking

  • 0

How can i stop “progress bar gif image” when i stopped processing by clicking “Stop Loading This Page” in web browser? When i clicked submit button then loading.gif image is displayed and now if i clicked to stop browser’s stop button then also that loading.gif is still running, how can i stop it? Gif should be stopped when browser’s stop is clicked but it is not stopping and continuing. How can i solve it?

//Here when submit button is clicked then loading.gif image is displayed

 <input onclick="showImg()" type="submit" name="submit" value="Search"/>

 <img alt="" src="loading.gif" id="progress_img" style="visibility:hidden;">

 <script language="javascript" type="text/javascript">
 function showImg()
 {
 if (document.getElementById) { (document.getElementById("progress_img")).style.visibility = "visible"; }
 }
 </script> 
  • 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-01T04:31:14+00:00Added an answer on June 1, 2026 at 4:31 am

    You can simply hide the gif when the “stop” browser button is clicked.

    document.onstop = function() {
         (document.getElementById("progress_img")).style.visibility = "hidden";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know how can we use the horizontal Progress bar from this link http://android-er.blogspot.in/2010/11/progressbar-running-in-asynctask.html
How can I stop this from happening, it is grabbing files in .svn folders
How can I set a progress bar that may start when an HTTPService is
I have this progress bar that uses callback functions from a third party driver,
I am using this: css progress bar Its great, and we have virtually customised
In the following code how can the progress bar be attached to the sound
Is there any method so that I can stop syncing to gmail. I want
Is there a way I can stop all processes in a certain directory through
I have looked and tried but don't see where I can stop some being
I'm trying to write a program that can stop and start services using SilverLight

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.