Mouse Status
Messages   Related Types
This message was discovered on microsoft.public.dotnet.languages.jscript.

Post a new message to this list...

ruca
Hi,

How can I know in JavaScript the status of mouse (down, up, pressed,
etc)????
Give me examples, please.

--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca

Reply to this message...
 
    
Karl
Something like this perhaps:

<html>
<head>
</head>
<body>
<div id="Status"></div>
</body>
</html>
<script language="javascript">
document.onmousedown=mousedown;
document.onmouseup=mouseup;

var div = document.getElementById("Status");
function mousedown(){
div.innerHTML += "down<br />";
}

function mouseup(){
div.innerHTML += "up<br />";
}
</script>

Karl

"ruca" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com