which mouse button pressed

Still struggling with implementing my custom drag and drop operation ...

can someone tell me if it's possible to tell which mouse button is being pressed (if any) when an onmouseout message is generated? I want to know if the left mouse button is being pressed:

function MyOnMouseOutHandler()
    if (event.button == 1) {
        alert("Yes left mouse button was held down when leaving!")
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

minnirokAuthor Commented:
Hi Lakio,

I was trying to implement my own drag and drop by using the default onclick, onmove, onmouseout - but they keep getting overridden by the actual ondragstart handlers. It seems like in internet explorer ondragstart gets called ok, but in firefox it does not? I have something like the following:

<div id = "mydiv" ondragstart="alert('hello')"></div>

in internet explorer this will get called, but in firefox this is never called. Does firefox have anything like that?

"in internet explorer this will get called, but in firefox this is never called. Does firefox have anything like that?"
- no I dont think so

take a look and see who they did it

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
minnirokAuthor Commented:
Thanks Lakio, the first link was simple enough to incorporate. I needed to make some changes to get it to work the way I want. I do have one more question regarding it which I'll post in a moment.
np m8 but so you now I think http://www.walterzorn.com/dragdrop/dragdrop_e.htm has a better script
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.