Wednesday, August 13, 2008

Javascript Tutorial : The FIrst Step - Hello World script

So you are excited about writing your first script in Javascript. Hereafter Javascript would be cumbersome to write so the popular acronym js i sbeing used.
So, what do you need to write a js script?
Just a browser with the js engine, Thats it!!! really. most of todays browsers like IE, Firefox, Opera happen to have it. You can actually type in js code in the address bar of the browser and it executes fine. To write code that you shall need later better save it somewhere. To write code in an organised manner though a text editor would be much more helpful. The text editors you can use better be WYSIWYG editors or What You See Is What You Get editors. People working on Windows could well use Notepad if they dont have any other editor to start with.

The hello world script
The first script that we write shall open an alert box in the browser. That should be enough to get you started :).
Now in the text editor write the following code in italics

No comments: