Learn to use objects to speed up the execution of your script. Can make the script a lot smaller and a lot more organized. This is the object oriented side of JavaScript.
How do you tell the browser that a script is starting? Moreover, how does he know what kind of script is starting? What if the browser doesn’t support JavaScript?
If you are new to javascript this tutorial would be a good place to start. Learn the basics of javascript, as well as some of the most commonly used javascript functions, such as: alert, prompt, redirect your web page's visitors.
This is an excellent introductory tutorial on JavaScript programming. It covers many essential elements such as Embedding JavaScript, JavaScript Grammar, Variables and data types, Operators, Functions, Objects, Event handlers, and more.