Javascript

From GPWiki

Files:GUITutorial_warn.gif The Game Programming Wiki has moved! Files:GUITutorial_warn.gif

The wiki is now hosted by GameDev.NET at wiki.gamedev.net. All gpwiki.org content has been moved to the new server.

However, the GPWiki forums are still active! Come say hello.

Javascript is a programming language that has been created specifically for HTML/websites. It uses functions and variables to make an interactive webpage for users.

The Basics

For novices just entering into the field of Javascript, most of your scripts will go into the header section of your page, between the <script></script> tags. Youstart by puttin <script language="JavaScript"> into your header section, just under the <title></title> tags. On the next line, type function ...() { (replace the ... with anyname you choose), this starts a function, which you can recall at anytime in your webpage.