Next
Contents 
Advanced JavaScript Tutorial
Advanced JavaScript Tutorial

Advanced JavaScript Tutorial

JavaScript is Netscape's cross-platform, object-based scripting language for client and server applications. It has dominated the world of internet scripting languages for a long time now.

Uses of JavaScript

JavaScript lets you create applications that run over the internet. Using JavaScript, you can create dynamic HTML pages that process user input and maintain persistent data using special objects, files, and relational databases. You can build applications ranging from internal corporate information management and internet publishing to mass-market electronic transactions and commerce - but those are the function of server side javascript. We will not be touching that - we are more intrested in Client Side JavaScript.

The Advanced JavaScript Tutorial assumes you know the basics of JavaScript language - if you don't already know it, I would suggest to take the time to learn it now. I have written a Basic JavaScript Tutorial - and I would recommend it if you are a beginner to this language. Even if you know JavaScript, I would recommend that you take the last three chapters of the Basic JavaScript Tutorial. Feel free to jump around the basic tutorial if you already know javascript.

T-Box

If you still think that you don't need the basic tutorial, let me introduce you to a unique feature of this tutorial - The T-Box or the Test box. The readers of Basic tutorial have already met this feature.

This is a T-Box. You can type javascript commands into it and it will execute them. With this you can immediately test your knowledge after you learn about a feature of javascript. A problem with the T-Box is that it would not show an error if you mistyped some thing in it and press 'Run' - try it. Type this in the box and hit run.
aler("This is wrong")
Nothing is shown(by default). This is because there was an error('alert' is spelled 'aler') and your browser suppressed the error message. You should turn on the error notification of your browser if you wish see the errors you have made - trust me, they will be many. Just do the following for your browser.

Microsoft Internet Explorer
Choose Tools -> Internet Options, and select the 'Advanced' tab. Make sure that the 'Display a notification about every script error' is ticked. Click 'OK' to save settings.
Mozilla
Select the 'Tools -> Web Development -> JavaScript Console' or type 'javascript:' in the address bar. This will open a window that will show a list of all javascript errors. The last error in the list is the most recent one - the one you made.
Other Browsers
See browser documentation to see how this can be done.

If done correctly, the above example(aler("This is wrong")) will show an error 'Object expected'(IE) or 'aler is not defined'(Mozilla).

Next
Contents 

Comments

Tanya at 09 Apr, 2007 09:53
Hi,

this is nice! I am advanced at javascript and HTML even though i'm a 9-year-old. Here is a link to my website: 4gww.com/
Reply to this.
Ned at 11 Jun, 2007 03:51
I'm 9 years old and just took interst in programming and was wondering if you know any good sites I should use to learn javascript for a 9 year old. I went to pagetutor.com so I am okay at HTML and when I tried to learn javascript from it it said you have to pay for the tutorial. How long have you done Javascript?

Sincerely,
Ned
Reply to this.
deepak at 05 Dec, 2007 10:09
Ya i m vary happy to see your interest in prograaming.
If u really intrested in javascript programming then go for W3c schools.
Over there u can learn javascript efficiently...
Thanks.
Reply to this.
Anonymous at 03 Jan, 2008 04:06
I can see u are enthusiastic to learn more. have connected to database using javascipt?

Ola
Reply to this.
Anonymous at 29 Apr, 2008 01:09
This is awesome on how many yougn kids are getting into programming and HTML and stuff like that. I started when I was ten, and I'm 11 now. I need to get some websites that will help me learn mroe advanced HTML and JavaScript.



thanks.
Reply to this.
Eva Braun at 21 May, 2007 03:22
It really works...!
Reply to this.
grammarm at 05 Aug, 2007 05:55
nice job...expect more...
Reply to this.
Anonymous at 04 Jan, 2008 03:20
alret ("what are the other advanced topics in Java script')
Reply to this.
Chat at 17 Feb, 2008 06:45
good sites I should use to learn javascript for a 9 year old. I went to pagetutor.com so I am okay at HTML and when I tried to learn javascript from it it said you have to pay for the tutorial.
Reply to this.
Fred at 23 Mar, 2008 04:52
I am also a 9 year old and advanced in javascript, html and css. Ola: I have connected to a database in javascript and did many things. I am very advanced even though I am only 9 years old.
Reply to this.
Anonymous at 31 Mar, 2008 06:52
I am 7 years old and I was thinking if I can learn AJAX. I knew little about Javascript but somehow confused on Math functions.
please help.
Reply to this.
Anonymous2 at 04 Apr, 2008 10:22
You have to get older and learn about a lot of math functions. Just wait.
Reply to this.
Anonymous2 at 04 Apr, 2008 10:21
I wanted to learn how to make a multi-player game. Can someone help me?
Reply to this.
Anonymous at 05 May, 2008 01:14
I am 6 years old.I want to learn advanced java and javascript
Reply to this.
Comment


Comment




Comment Formating : HTML tags a, strong, em, b, i, code, pre, p and br allowed. Other tags will be shown as code(< will become &lt;). Urls, Line breaks will be auto-formated.