Who Should Read This Document?
Organization of This Document
Getting Web Kit Builds
See Also
This document provides an overview of the JavaScript language as provided by Apple in the Web Kit and JavaScript Core frameworks. It looks at JavaScript language basics, object-oriented programming using JavaScript, and best practices to follow when writing JavaScript code.
You should read this document if you are webpage or Dashboard widget developer who wants to learn JavaScript and best practices for Apple’s JavaScript runtime. Also, this document is useful if you’re using an application that offers a scripting environment that uses Apple’s JavaScript Core framework, like Installer or Quartz Composer.
This document contains the following chapters:
“JavaScript Basics” introduces you to the JavaScript language and its basic structures.
“Object-Oriented JavaScript” discusses implementing an object in JavaScript.
“JavaScript Best Practices” shows you best practices to consider when coding in JavaScript.
Safari is powered by the Web Kit framework, an open source project found at WebKit.org. To try your web-based JavaScript code with the latest JavaScript language features, download a nightly build from http://nightly.webkit.org/.
The Reference Library > Apple Applications > Safari provides useful information on the Web Kit, the technology that provides Apple’s JavaScript runtime. Read Web Kit DOM Programming Topics to learn more about the Web Kit’s DOM interfaces, useful when coding a webpage or Dashboard widget.
Read Dashboard Programming Topics for information on the technologies available to you when creating a Dashboard widget. Additional Dashboard documents and sample code can be found in the Reference Library > Apple Applications > Dashboard.
Installer Tiger Examples includes information on using the JavaScript runtime included with Apple’s Installer application.
Last updated: 2008-01-15