INFO: Key Commands Firing onClick Different for IE and Netscape

ID: Q184801


The information in this article applies to:
  • Internet Client SDK, versions 4.0, 4.01
  • Microsoft Internet Explorer (Programming) versions 3.0, 3.01, 3.02, 4.0, 4.01
  • Microsoft ActiveX SDK, version 1.0


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.


REFERENCES

Please refer to the documentation for the onClick event in the Internet Client SDK online help:

http://www.microsoft.com/msdn/sdk/inetsdk/help/

Additional query words:

Keywords : kbIE300 kbIE301 kbIE400 kbIE401 kbScript kbIE302 kbHTMLObj
Version : WINDOWS:1.0,3.0,3.01,3.02,4.0,4.01
Platform : WINDOWS
Issue type :


Last Reviewed: August 27, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.