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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:25:34+00:00 2026-05-26T10:25:34+00:00

I orginally asked this question and at the time I was grasping at straws.

  • 0

I orginally asked this question and at the time I was grasping at straws. I created the following fiddle that is closely related to what I’m actually seeing on my internal application:

http://jsfiddle.net/uwtj9/10/

There is a normal index.asp page. On that page I can open a div that includes an iFrame (so a popup). Then from that iFrame I can then open another div that includes another iFrame. However, when the second div opens I am trying to close the 1st div. Hopefully that makes sense.

However, when I try to open the second div, the code to create the iframe never gets run. I think it has to do with the “top.” that is currently in my internal application code. When I try to add top.hidepopwin I get an error in Firebug:
Permission denied to access property ‘hidePopWin’

However, in my code internally I don’t get that error message, but I don’t get into the doPopWin code.

Unfortunately for whatever reason when I take out the top. in my code internally it doesn’t quite work the way I’m expecting (and I can’t replicate it on the fiddle). Basically the second div gets created but it remains the same size and not all the elements are getting cleared (i.e the original menu is still showing up under the new menu).

Anyone have any idea’s on this? The fiddle seems to be working as I expect but this “top.” thing is kind of weird.

UPDATE:

SLaks answer of why the “top.” doesn’t work for jsFiddle is acceptable. I’m still left wondering about this issue:

Unfortunately for whatever reason when I take out the top. in my code internally it doesn’t quite work the way I’m expecting (and I can’t replicate it on the fiddle). Basically the second div gets created but it remains the same size and not all the elements are getting cleared (i.e the original menu is still showing up under the new menu).

Any ideas?

  • 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-26T10:25:34+00:00Added an answer on May 26, 2026 at 10:25 am

    top returns the window object for the outermost frame hosting your page.

    In jsFiddle, that’s the root jsfiddle.com page, which is in a different domain than your user code. (user submissions in jsFiddle run in http://fiddle.jshell.net)

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

Sidebar

Related Questions

This is an offshoot question that's related to another I asked here . I'm
I originally asked this question , but in finding an answer, discovered that my
This question was originally asked for the objective-c programming language. At the time of
I asked a question about this that was originally answered here . Originally, I
I originally asked this question on Super User but was told that it might
Note: I originally asked this question about an hour ago but only recently realized
This question was originally asked for Android 1.6. I am working on photos options
A co-worker asked about some code like this that originally had templates in it.
I originally started this question in another thread, but that thread was sorta, kinda
another memory management question: I have asked this before, but did not really get

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.