Microsoft KB Archive/184801

= INFO: Key Commands Firing onClick Different for IE and Netscape =

Article ID: 184801

Article Last Modified on 8/18/2005

-

APPLIES TO


 * Microsoft Internet Client Software Development Kit 4.0
 * Microsoft Internet Client Software Development Kit 4.01
 * Microsoft Internet Explorer 3.0
 * Microsoft Internet Explorer 3.01
 * Microsoft Internet Explorer 3.02
 * Microsoft Internet Explorer 4.0 128-Bit Edition
 * Microsoft Internet Explorer 4.01 Service Pack 2
 * Microsoft ActiveX SDK

-



This article was previously published under Q184801



SUMMARY
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.



MORE INFORMATION
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.

