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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:55:03+00:00 2026-05-28T14:55:03+00:00

So i have iframe and i’m uploading files through it, so my question is

  • 0

So i have iframe and i’m uploading files through it, so my question is how can i stop it in the middle of the loading? I’ve tried to change src with jquery function attr() but i didn’t do any good, i’m thinking of removing the whole iframe with js but it would create me other problems and i’m not even sure if it would work. So is there some other ways to do it?

My next question would be, is it possible to hide loading indicators so it wouldn’t confuse users that page is loading or something.

Answers like you should use flash or other stuff won’t be accepted i already did everything with iframe i just need to do those 2 things.

Here is my iframe code:

<iframe onload="file_uploaded()" class="iframe" src="user/upload_image/" name="iframeTarget" ></iframe>
  • 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-28T14:55:03+00:00Added an answer on May 28, 2026 at 2:55 pm

    I believe the following answers your question:
    https://stackoverflow.com/a/2207589/1157493

    For FireFox/Safari/Chrome you can use window.stop():

    window.frames[0].stop()
    

    For IE, you can do the same thing with document.execCommand(‘Stop’):

    window.frames[0].document.execCommand('Stop')
    

    For a cross-browser solution you could use:

    if (navigator.appName == 'Microsoft Internet Explorer') {
      window.frames[0].document.execCommand('Stop');
    } else {
      window.frames[0].stop();
    }
    

    If you’d like the iframe to go to a different page you could try to redirect it to “about:blank”

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

Sidebar

Related Questions

I have an iFrame and have worked out how to clone it using jQuery:
I have iframe (cross domain) with src from Facebook, Twitter or etc. I need
I have an iframe using the jQuery 1.4.2 script. The same iframe is injected
I have an iframe <iframe src=preloader.gif id=graphFrame...></iframe> . I would like to centre the
I have an iframe to embed audio which points to a src like this...
I have an iframe that looks like this: <iframe src=http://www.google.com height=1000 width=500 id=myiframe></iframe> I
I have an iframe which includes src like this: <iframe id=frame1 src=/jsp/transfer/a.jsp?isChange=true&bizId=+bizId></iframe> bizId is
I have an iframe with a video, for example: <iframe src=http://player.vimeo.com/video/18150336 width=500 height=281 frameborder=0
I have an iframe. The content is wider than the width I am setting
I have an iframe window that displays a report. To access this iframe, I

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.