As someone who has been writing JS for 2+ years now, I feel the need to interject. For the love of all that is good, do NOT learn from w3schools as one of the above people advised. It is so bad, there is literally a site ( <a href="http://w3fools.com/" rel="nofollow">http://w3fools.com/</a> ) dedicated to helping people avoid them. The site I recommend for beginners is <a href="http://eloquentjavascript.net/contents.html" rel="nofollow">http://eloquentjavascript.net/contents.html</a> They don't assume any prior knowledge, don't waste your time, and write very easy to digest material. That will get you quite decent in JavaScript, and if you need more after that, I would recommend the book Javascript:The Definitive Guide.