Hi All,
I have similar problem. This is my function:
<script LANGUAGE="JavaScript1.2">
function IEKey() {
if (window.event.keyCode == 90)
{alert('That\'s the Z key')};
if (window.event.keyCode == 5)
{alert('That\'s the UpArrow key')};
}
</script>
For arunjp, this should work:
<script>
NN = (document.all) ? 0 : 1;
function MouseDown(e) {
if (NN) {
// Netscape code here e is event
} else {
// IE code here, event is event (like event.srcElement)
}
}
if (NN) {
document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP);
}
document.onmousedown = MouseDown;
</script>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.