Stop request in an IFrame

Posted on 2006-04-13
Last Modified: 2008-03-10
In IE, when you have a hanging page in an IFrame, there seems to be no way to stop the request. The stop button only functions for the root page. How could you stop a page running in an iframe. Is there a way to do this programmically. Refreshing the browser is not an option for this application.
Question by:elmoredaniel
    LVL 4

    Accepted Solution

    Ever tried stopping your <iframe> request via .stop() ?

    var myiframe = document.getElementById("iframeid");

    IIRC IFrames are actually considered as a window, not a frame, which is why using window.stop() makes sense (IMO anyways).


    Author Comment

    Wow, I've been doing JS for years, don't know how I missed that one. Thanks!
    LVL 4

    Expert Comment

    LOL no prob.
    Sometimes you just have to think in a wider scape (which is kinda difficult while struggling with a problem).

    IFRAMEs always _behaved_ like windows which is why I thought of this :)


    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now