Javascript Open Browser Window

Javascript Open Browser Window

Javascript Open Browser Window

Javascript is a good starting point for anyone interested in games programming. That's because all they need is a standard text editor (such as notepad or Pico) and a web browser. With those, and a little javascript code, the programmer can quickly produce some simple animation that can be controlled by the user (as discussed in How to Make Web Page Animations Using Javascript: Creating a Simple Javascript Game with the setTimeout method).

However, before long, the programmer want to do more than just move an object and that the user has clicked a mouse button. The programmer will start to need to know where the mouse cursor is positioned on the screen. Fortunately this is another task that Javascript makes easy.

Not All Web Browsers are the Same

Javascript is useful to application developers because they know that it is universally accepted by the creators of web browsers. This means that the programmer can write an web based application that will run correctly with Firefox or Internet Explorer.