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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:08:14+00:00 2026-05-29T23:08:14+00:00

I have an iframe with a flash clip inside that’s occupying the full window,

  • 0

I have an iframe with a flash clip inside that’s occupying the full window, outside the iframe I have a div that serves as a menubar above the iframe, which has dropdown menu’s.

Now the challenge is to make these dropdown menu’s appear on mouseover but hide when the visitor interaces with the flash / iframe.

I can easily detect whether this is the case by checking document.activeElement, however the problematic part is detecting when they “aren’t” using flash. What I’m doing now is simply detecting mouse movement on the main window, then resetting activeElement by calling top.focus(), (document.activeElement.blur() does not work on Chrome for some reason). The problem is that after doing this it won’t set the activeElement back to the iframe again when the user interacts with it, almost as if top.focus() sets activeElement to “body” indefinitely.

Any idea’s on how I can do this properly?

In a nutshell, I need to take focus away from an iframe when the main window is being interacted with, and then set focus back to the iframe when it’s being interacted with (which should be the browsers default behaviour).

Thanks

Edit:

jsFiddle to showcase the problem: http://jsfiddle.net/tvc3S/

Note that without Flash it works fine.. not sure if there’s a way around this..

  • 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-29T23:08:17+00:00Added an answer on May 29, 2026 at 11:08 pm

    Boy I sure was making things far more complicated than necessary, simply detecting mouseover and mouseout events on the iframe did the job..

    http://jsfiddle.net/89s7q/

    Of course this uses the hover events rather than focus events, which makes for a slightly different experience, but it’s fine for what I’m doing.

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

Sidebar

Related Questions

I have an iframe window that displays a report. To access this iframe, I
I have an iframe that returns data to the top.document window just fine by
I have an app that has an IFrame with a page flash overly allowing
I have an AD which is basically a flash file inside an IFRAME. Unfortunately,
I have an iframe that references an external URL that serves up pages that
I have to show a div over the iframe which contains a flash video
I have parent page index.php and inside it i have iframe like below <div
I have a iframe that i want to open pdf's into from a list
I have content in an iframe, and when I scroll the main page (outside
I've got a Flash-based Facebook App running in an iFrame that makes regular URLRequest

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.