ID: Q184801
The information in this article applies to:
The key commands that cause the onClick event to fire for Internet Explorer (IE) is different than the key commands that cause this event to fire for Netscape Navigator. IE follows correct Windows behavior for firing the onClick event when certain keys are pressed.
The correct Windows behavior for firing the onClick event is different depending on the key that is pressed. If the Spacebar is pressed, the correct Windows behavior for firing onClick is when the keyup command is
received. For the Enter key, the correct behavior for firing this event
is when the keydown message is received.
Here is summary of when the onClick event is fired for both the Spacebar and the Enter key depending on the browser type and version.
Browser Version Spacebar Enter
IE 3.0x Keyup Keydown
IE 4.0x Keyup Keydown
Windows N/A Keyup Keydown
Navigator 4.x Keydown Keydown
Navigator is manufactured by Netscape, a vendor independent of
Microsoft; we make no warranty, implied or otherwise, regarding this
product's performance or reliability.
Please refer to the documentation for the onClick event in the Internet Client SDK online help:
http://www.microsoft.com/msdn/sdk/inetsdk/help/
Keywords : kbIE300 kbIE301 kbIE400 kbIE401 kbScript kbIE302 kbHTMLObj
Version : WINDOWS:1.0,3.0,3.01,3.02,4.0,4.01
Last Reviewed: January 9, 1999