What is this book about?JavaScript is the preferred programming language for Web page applications, letting you enhance your sites with interactive, dynamic, and personalized pages. This fully updated guide shows you how to take advantage of JavaScript's client-side scripting techniques for the newest versions of Netscape and Internet Explorer, even if you've never programmed before.
You begin with basic syntax and learn about data types and how to structure code for decision-making. Then you learn to use dates, strings, and other basic objects of JavaScript. Next, you see how to use JavaScript to manipulate objects provided by the browser, such as forms and windows. From there, you move into advanced topics like using cookies and dynamic HTML.
After you have a solid foundation, you explore dynamic generation of Web content using server-side scripting and back-end databases. And you practice what you learn by building a sample application as you go.
What does this book cover?
Here are some of the things you'll find in this book: What types of data are used in JavaScript How to identify and correct flaws in your code Techniques for programming the browser How to use Microsoft Script Debugger and Netscape Script Debugger Ways to manage cross-browser issues How JavaScript interacts with XML and HTML
Who is this book for?
This book is for anyone who wants to learn JavaScript programming. You should have some understanding of HTML and how to create static Web pages, but no prior programming experience is necessary.
The 4th edition feels very dated. Once you reach the point of accepting user data, the methods become a constant reminder of how much further along we are in web coding practices than we were in 2008. Plus the constant use of the HTML4 doctype dates this edition. I reached a point where I knew things were not good practice to follow and stopped reading. HTML in your JS feels dirty.
5th edition releases in March 2015. Hopefully this new edition will introduce current best practices.
I loved the format of this book - each example program is explained line by line (or block by block when that makes more sense). And the authors do this throughout the book! So when you get to later chapters, it's not assumed that you already know what's going on. Things are still explained in a clear, concise yet detailed, manner.
I decided to read this book, because I was looking for Javascript for starters, however I wasn't expecting a text for people with no exposure at all to software development. Despite of many boring chapters, explaining what programming actually is, I found there plenty of information that I was looking for. To summarize, it is a good introductory text to Javascript about both programming language and web development.
I always keep this book on my bookshelf for reference. I have never been a JavaScript fan but we all have to do it to get jobs done and this book has helped me out a lot over the years.