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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:22:31+00:00 2026-06-12T16:22:31+00:00

I have problem with dojo/on and handling mouseenter and mouseleave. It doesn’t work for

  • 0

I have problem with dojo/on and handling mouseenter and mouseleave. It doesn’t work for me… I prepared sample code:

<!doctype html>
<html>
    <head>
        <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.8/dojo/dojo.js" data-dojo-config="async: 1"></script>
    </head>
    <body>
        <div id="test">TEST</div>
    </body>
</html>
<script type="text/javascript">
require(["dojo/dom", "dojo/on","dojo/domReady!"], function(dom, on) {
    on(dom.byId('test'), 'mouseenter', function() { alert('12'); });
});
</script>

If you will try to open it in Chrome it does not work, although if you open it in Opera, FF or IE it works just fine. Am I doing something wrong or there is any other way to use on mouseenter and mouseleave? over and out works in Chrome but would like to stay with enter and leave.

  • 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-12T16:22:33+00:00Added an answer on June 12, 2026 at 4:22 pm

    Use Extension Events of dojo/mouse module:

    require(["dojo/dom", "dojo/on", "dojo/mouse"], function(dom, on, mouse) {
    
        on(dom.byId('test'), mouse.enter, function() { alert('12'); });
    
    });
    

    See how it works in this jsFiddle: http://jsfiddle.net/phusick/gUNuC/

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

Sidebar

Related Questions

I think i have a basic problem in understanding the dojo toolkit. Well I
I have problem while loading data into html select when users press or click
I have a problem with dijit editor of dojo: I used execCommand to insert
i have an custom widget in dojo. My Problem is to check some kind
JavaScript For example, I have the following JavaScript code (Dojo 1.6 is already loaded):
I am working with dojo editor. And I have a problem so could you
I have this problem I'm using DataGrid + dojo.store.JsonRest as store. I want to
in my Zend Framework App i wanna use Dojo Form. I have problem with
I have problem in DOJO with DataGrid. I refresh my grid on every 1
I have a problem with events on IE8 (dread!), using dojo toolkit 1.4.3 (can't

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.