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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:27:30+00:00 2026-05-12T09:27:30+00:00

I am having the following problem under Internet Explorer 7/8: I have a popup

  • 0

I am having the following problem under Internet Explorer 7/8:

I have a popup that gets activated when user mouseover a link. The popup is a simple <div> that contains some data. Inside this <div> tag there is a <select> tag with some <option>s. I have attached mouseover/mouseout events to the <div>, so that this popup will stay open while cursor is over it. The problem comes when you click on the <select> and then move the cursor over any of the <option>s. This triggers the mouseout event of the <div> tag and respectively closes it.

How can I prevent the closing of the popup in IE ?

  • 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-12T09:27:31+00:00Added an answer on May 12, 2026 at 9:27 am

    You should be able to detect if the situation is the one you want just with the values off the event. It is a little convoluted but it seems to work.

    In the event handler of your outer div, do something like this:

    <div onmouseover="if (isReal()) { toggle(); }"
         onmouseout="if (isReal()) { toggle(); }">
    </div>
    

    Then implement the isReal method:

    function isReal() {
        var evt = window.event;
        if (!evt) {
            return true;
        }
    
        var el;
        if (evt.type === "mouseout") {
            el = evt.toElement;
        } else if (evt.type === "mouseover") {
            el = evt.fromElement;
        }
        if (!el) {
            return false;
        }
        while (el) {
            if (el === evt.srcElement) {
                return false;
            }
            el = el.parentNode;
        }
        return true;
    }
    

    Basically the isReal method just detects if the event was coming from within the div. If so, then it returns false which avoids calling the hide toggle.

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

Sidebar

Related Questions

I am having a problem with SSRS 2008 reports that have fixed column headers.
I'm having the following problem: I have a ListActivity, its ListView is composed by
I'm having the following problem: I have a ListView and I get the layout
I'm currently having the following problem: I've got a TableView that is given TableRow's
I'm a beginner in JSF and I´m having the following problem: I have a
I'm having the following problem. I created a application context file for spring.net. The
I'm having problem in the following line: rd.PrintOptions.PaperSize = PaperSize.PaperFanfoldStdGerman; it throws an exception
I'm having a little problem with the following: When I execute this line: echo
I have the following application which replicates an issue I'm having in a larger
I'm having a strange problem with the HTML5 manifest file under Chrome 5.0.375.99 but

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.