www.webdeveloper.com
Results 1 to 3 of 3

Thread: [RESOLVED] onmousedown doesn't work while onmouseup works

  1. #1
    Join Date
    May 2011
    Posts
    3

    resolved [RESOLVED] onmousedown doesn't work while onmouseup works

    Here is a simple version of the relevant line of my code:

    Code:
    <div class="button" onmousedown="alert('down');" onmouseup="alert('up');">&laquo;</div>
    There is no response for onmouse down, but onmouseup generates the appropriate alert. Would anyone have any ideas why onmousedown doesn't work?

  2. #2
    Join Date
    May 2011
    Posts
    3
    Fails in both firefox4 and IE8.

  3. #3
    Join Date
    May 2011
    Posts
    3
    Nevermind, I figured it out. The javascript had the following line:

    Code:
    document.getElementById('button').onmousedown = function () { return false; } // mozilla
    This thread can be deleted.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles