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.
jignesh at 25 Apr, 2009 12:33
hi,good to hear you.If you want to learn javascript there are many web tutorials available which may help you.www.dynamicdrive.com,www.dhtmlgoodies.com,www.jquery.org
Reply to this.
Anonymous at 29 Apr, 2009 09:21
hi i am 12 yrs old and ive taken an interst in programming and i would recommend www.w3schools.com
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.
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.
property bulgaria at 23 May, 2008 02:45
Very nice post, i found some tips about that here http://ooyes.net/blog/javascript-tutorials:75
Reply to this.
Anonymous at 15 Aug, 2008 06:43
I was born 14 days ago, and am already very advanced in the ways of teh javascript, c#, and the wopbamboogie. Does anybody know where I can find tutorials on binge-drinking?
Reply to this.
Anonymous at 15 Aug, 2008 06:45
Hi,


I am 14 weeks old, and already very advanced in the ways of Javascript, C#, and the wopbamboogie. Could anybody point me to some advanced tutorials in binge-drinking? Thankyou.

Reply to this.
Anonymous at 09 Sep, 2008 02:23
I am going to take birth after 14 minute from now, and already very advanced in the ways of Javascript, C#, and the wopbamboogie. Could anybody point me to some advanced tutorials in binge-drinking? Thankyou.
Reply to this.
Anonymous at 03 Oct, 2008 06:54
i just died....14 sec ago....couldn't learn javascript. all my childrn are javascript experts, from 99 year old to my to be born daughters. this is so depressing for me. i have killed myself. but i promise i will show god my programming skills. Please tell me some sites where i can learn smthing... thank you very much.
Reply to this.
Anonymous at 06 Nov, 2008 02:26
well i´m 3 years old and i know java script since i was 2 but i couldn´t write u ppl cuz I´ve just learned to speak, also I know some php stuff and mysql got this shit dudde gonna be a pro as soon as i get 5
Reply to this.
Anonymous at 15 Nov, 2008 02:24
Im just a newly born foetus, with the spiral still connected, and im very much experienced in C++, Java Scpript, CSS, Ajax, and finally ASP. Thats all for the moment. N im proud to be a Mauritian. "Mo p boor zotou ben ti ggt"!
Reply to this.
Anonymous at 30 Nov, 2008 04:46
I'm 22 from England,ive been involved with JavaScript for 2 years now,when i was first looking into JavaScript i learned by online tutorials and book's,i'm advanced nowday's,it's easy after the first few month,i'm also advanced in python and php,these day's im working on java,but its real cool to programme with these,my status is web design which im doing now,i only programme in my spare time on my own pc,my uncle is also a very advanced java programmer,better than i am,he's been doing it for 23 years since the 1980's but he builds illegal spyware and malicious programmes,but i dont get involved with that,i started like you did,but good luck with your stuff,Dean
Reply to this.
Anonymous at 01 Dec, 2008 06:50
My parents are yet to be born and i am already expert in CSS, Javascript, Jakartascript, AJAX, VB.NET, ASP, HLL... Am am giving tuition in all of the above topics, any1 interested let me know in 20 years, koz ma paretns are not yet born.. Take care my grandfathers, cya
Reply to this.
Anonymous at 31 Dec, 2008 12:27
I wasn't born at all. I will never be born, nor am I even here right now. I don't exist, and these aren't words, and I'm still an expert in C#, C++, javascript, and blavascript. It's all nonsense, but don't forget that I am the best of all those things that I previously did not mention.
Reply to this.
Anonymous at 04 Jan, 2009 08:29
I am 1 years old and rock at everything to do with the web
Reply to this.
Anonymous at 05 Jan, 2009 09:53
i am just a sperm... i am waiting for some eggs to passby... but i am expert in php, jsp, mysql, oracle, javascript......... did i mention c++, C#, .net, perl.... and the list goes on... but i can't write you some examples coz at this point i have no hands and fingers... only one lousy tail........... lol....
Reply to this.
Anonymous at 02 Feb, 2009 09:40
I am a bacterium and won't evolve into an intelligent life-form for another 300 million years, but I am an expert in javascript, php, ajax, C# and FORTRAN. I can also touch-type 80 wpm with my flagellum.
Reply to this.
Anonymous at 09 Feb, 2009 06:11
I am 1 second old. Zuckerberg stole my codes to Facebook.
Reply to this.
Anonymous at 05 Mar, 2009 08:30
I am from your previous life. I created the programming languages responsible for turning cow flagellation into carbon dioxide. As you know, the application is still running without errors. I have no need for javascript, php, jsp, mysql, or c++.
Reply to this.
Anonymous at 12 Mar, 2009 08:25
I'm am from the future, Javascript and web related programming don't exists anymore so it kindda looks sad to be like you guys. Just cheer up you'd be dead anyways
Reply to this.
Anonymous at 07 Jun, 2009 12:12
I am from Stone age ...Computers are not invented yet ...........
but I am expert in C#,Javascript,ajax ,Asp.net...etc etc ,
Please tell me some sites where i can learn smthing
Reply to this.
Anonymous at 02 Jul, 2009 03:43
khakz khakz khakz
Reply to this.
MAK at 02 Jul, 2009 03:43
lolz lolz lolz
Reply to this.
I don't know at 02 Jul, 2009 03:43
I don't know who i'm.
Reply to this.
Comment

Please dont enter you comments in this form - this is a fake form to confuse spamming bots. The next form is the real one.




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.