Problem with using onMouseDown

W

Weston C

I'm trying to use onMouseDown to build a certain behavior into a
javascript application (see
http://groups.google.com/[email protected]&rnum=1
for the gory details, but essentially I want a pop-up menu to appear
when I
hold the mouse down on an image element for at least one second).

However, I'm finding that Mozilla pops up its own menu when I do this,
which will definitely get in the way of my own pop up. How do I get
around this?
 
T

Thomas 'PointedEars' Lahn

Weston said:
[...] but essentially I want a pop-up menu to appear when I
hold the mouse down on an image element for at least one second).

However, I'm finding that Mozilla pops up its own menu when I do this,

If it is the secondary mouse button that is pressed. Otherwise
Mozilla rv:1.5 and later could resize the image.
which will definitely get in the way of my own pop up.

Yes, your design is flawed.
How do I get around this?

With normal `img' elements you cannot and that is a Good Thing.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top