摘要
JavaScript是一个脚本编程语言,在客户机中它可用于编写Web浏览器在Web页面上下文中执行的程序。因此在网页编程中占主导地位。随着LINUX的流行,使用NETSCAPE浏览器的人也越来越多,所以有必要对同一个Web页的JavaScript在这两个测览器上正常运行进行研究。本文主要是针对键盘和鼠标事件的探讨。
Being a Script Language, JavaScript in client is used to compile the programs that web browser executes in web context. For this reason, it plays a leading role in web programming. Many web browsers support it, however, they aren't compatible in some events. For example, keyboard and mouse events are used differently in IE and NETSCAPE. As LINUX is becoming popular, more and more people use NETSCAPE browsers. So it is necessary to study how JavaScript works normally on the two browsers. This paper focuses on keyboard and mouse events.