dojo on.emit won't work in FireFox?

Seems simple enough, using the Dojo toolkit click a div and trigger an anchor tag on the page.

The code in listing 1 below works on:
Chrome version 35
Internet Explorer 11

Won’t work on FireFox ver 30.

Dojo’s dojo/on module has the emit() method that provides a normalized way to dispatch events. It is supposed to be cross-browser.

From the info on this page, Disabling native events when using Firefox with WebDriver, it sounds like Dojo may, like WebDriver, be using FireFox’s native event facilities and failing.

<!DOCTYPE html>
<html >
    <script>dojoConfig = {async: true, parseOnLoad: false}</script>
    <script src=""></script>
    <style media="screen" type="text/css">
        .bold {font-weight: bold;}
        .box {border:1px black solid;margin-top:4em;margin-left:8em;}       
                var nde = query('#div123');
<body class="claro">
    <div id="div123" class="bold box">click me!</div>
    <div class="box">
     <a id="target" href="javascript:alert('hello')">will trigger this link</a>

Listing 1

2 thoughts on “dojo on.emit won't work in FireFox?”

    1. I searched for solution, nothing found. Tried many things, but could not get that to work. Now I don’t remember what I did to avoid not using it. I should have posted the issue on the Dojo forums I guess.

Leave a Reply

Your email address will not be published. Required fields are marked *