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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:56:20+00:00 2026-06-12T23:56:20+00:00

I have a single page application which create and remove a number of iframe

  • 0

I have a single page application which create and remove a number of iframe based on user input. each iframe could contain a jqgrid, a form for input submission with jquery.validate plugin etc…

the main page could access all the iframes to retrieve current operation status and some data to rebuild the main menu.

is safe to just remove the iframes or i need to .empty() the body before removing them?

EDIT:

when i say “retrieve current operation status and some data” i actually access the iframe properties using something like this

jqueryFrameObject[0].contextWindow.myCoolProperty

but never cache the object in the main page

  • 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-12T23:56:21+00:00Added an answer on June 12, 2026 at 11:56 pm

    No : jQuery takes care of removing the elements which could lead to memory leaks :

    In addition to the elements themselves, all bound events and jQuery data associated with the elements are removed.

    If you don’t keep other pointers (including hidden ones based for example on closures), you’ll be safe. Be careful not to use the native addEventListener if you don’t want to keep hidden links to your removed elements.

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

Sidebar

Related Questions

I have a nested user control which appears on every single page. It contains
We have a single page application which loads all content through ajax calls to
I'm building a single-page application. At the moment, I also have several independent pages
I have an application where every single page uses a set of data that
I have a single page website that changes content based on variables passed through
Basically I have a single page site that scrolls when the user clicks on
I have a single application which manages and delivers several sites. I does this
I have a basic ASP.Net MVC 3 application which has a number of controllers
I have created a form in my web application which has only a single
I have a pretty large single page application that's about 800K. About 500K is

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.