Acerca de está guía

JavaScript es lenguaje de programación orientado a objetos, multiplataforma. Está guía te explicará cualquier cosa que necesites saber para utilizar JavaScript.

New features in JavaScript versions

¿Qué deberías saber?

Esta guía asume que tienes los siguientes conocimientos:

  • Un conocimiento general de Internet y la World Wide Web (WWW).
  • Buen manejo de HyperText Markup Language (HTML).
  • Alguna experiencia de programación. Si eres nuevo en la programación, prueba alguno de los tutoriales enlazados en la página de JavaScript

Versiones de JavaScript

Table 1 JavaScript and Navigator versions
JavaScript version Navigator version
JavaScript 1.0 Navigator 2.0
JavaScript 1.1 Navigator 3.0
JavaScript 1.2 Navigator 4.0-4.05
JavaScript 1.3 Navigator 4.06-4.7x
JavaScript 1.4  
JavaScript 1.5 Navigator 6.0
Mozilla (open source browser)
JavaScript 1.6 Firefox 1.5, other Mozilla 1.8-based products
JavaScript 1.7 Firefox 2, other Mozilla 1.8.1-based products
JavaScript 1.8 Firefox 3, other Gecko 1.9-based products

Cada versión de Netscape Enterprise Server también soporta una versión diferente de JavaScript. Para ayudarte a escribir programas que sean compatibles con multiples versiones del Enterprise Server, este manual utiliza una abreviación en cada característica para indicar la versión del servidor en la que fué implementada.

Table 2 Abbreviations of Netscape Enterprise Server versions
Abbreviation Enterprise Server version
NES 2.0 Netscape Enterprise Server 2.0
NES 3.0 Netscape Enterprise Server 3.0

¿Dónde encontrar información sobre JavaScript?

La documentación de JavaScript consta de los siguientes libros:

  • La Guía de JavaScript (está guía) provee información sobre el lenguaje JavaScript y sus objetos.
  • JavaScript Reference provee material de referencia para el lenguaje de programación JavaScript.

Si eres nuevo en JavaScript, comienza con la Guía de Inicio de JavaScript. Una vez hayas comprendido firmemente los fundamentos, puedes utilizar la Referencia de JavaScript para obtener más detalles de objetos individuales y declaraciones.

Trucos para aprender JavaScript

Empezar con JavaScript es fácil: lo único que necesitas es un explorador Web moderno. Está guía incluye algunas características que sólo están disponibles en las últimas versiones de Firefox (y otros exploradores Gecko), así que es recomendable utilizar la última versión de Firefox.

Una consola interactiva

Una consola interactiva de JavaScript es una ayuda indispensable para aprender el lenguaje, permitiendote probar algo sin necesidad de salvar un archivo y refrescar la página. La Consola de Errores de Firefox, accesible desde el menu de Herramientas, provee una forma sencilla de probar JavaScript: Tan sólo tienes que introducir una línea de código y hacer click sobre el botón "Evaluar".

Image:ErrorConsole.png

Firebug

A more advanced interactive prompt is available using Firebug, a Firefox extension. Expressions you type are interpreted as objects and linked to other parts of Firebug. For example, you can add 5 plus 5, change the case of a string, get a clickable link to the document, or get a link to an element:

Using the arrow on the right bottom corner gives a command editor for multiline scripts.

Firebug also provides an advanced DOM inspector, a JavaScript debugger, a profiling tool and various other utilities. JavaScript code running in a Web page can call, console.log(), a function that prints its arguments to the Firebug console.

Document conventions

JavaScript applications run on many operating systems; the information in this book applies to all versions. File and directory paths are given in Windows format (with backslashes separating directory names). For Unix versions, the directory paths are the same, except that you use slashes instead of backslashes to separate directories.

This guide uses uniform resource locators (URLs) of the following form:

http://server.domain/path/file.html

In these URLs, server represents the name of the server on which you run your application, such as research1 or www; domain represents your Internet domain name, such as netscape.com or uiuc.edu; path represents the directory structure on the server; and file.html represents an individual file name. In general, items in italics in URLs are placeholders and items in normal monospace font are literals. If your server has Secure Sockets Layer (SSL) enabled, you would use https instead of http in the URL.

This guide uses the following font conventions:

  • The monospace font is used for sample code and code listings, API and language elements (such as method names and property names), file names, path names, directory names, HTML tags, and any text that must be typed on the screen. (Monospace italic font is used for placeholders embedded in code.)
  • Italic type is used for book titles, emphasis, variables and placeholders, and words used in the literal sense.
  • Boldface type is used for glossary terms.

Archivos adjuntos

Archivo Tamaño Fecha Adjunto por
ErrorConsole.png
20097 bytes 2007-07-31 22:26:55 Simon
FirebugCommandLine.PNG
22567 bytes 2011-04-21 04:39:28 Johnjbarton
button-3.png
1806 bytes 2005-12-23 16:54:00 Rod Whiteley

Document Tags and Contributors

Contributors to this page: jblancogl
Última actualización por: jblancogl,