The JavaScript Programming Language

Hello World Example Program

Click below to go directly to a specific section:
Description| Source Code| Sample Run


When Click me is pressed the phrase "Hello World" is displayed.

Source Code

<TITLE>Hello World With JavaScript</TITLE>
	<FORM Name="Form1" ACTION="">
	<INPUT TYPE=BUTTON VALUE="Click me" NAME="BtnHello" OnClick="Hello()">



    function Hello ()
        alert("Hello World!")



Sample Run

[Back] [Home]

Last Modified: 01:40 PM on 12/09/1997