La descarga está en progreso. Por favor, espere

La descarga está en progreso. Por favor, espere

JavaScript Programación Web. Java Script es un lenguaje de escripts que se usa en páginas web (ligero) Java es un lenguaje de programación orientada a.

Presentaciones similares


Presentación del tema: "JavaScript Programación Web. Java Script es un lenguaje de escripts que se usa en páginas web (ligero) Java es un lenguaje de programación orientada a."— Transcripción de la presentación:

1 JavaScript Programación Web

2 Java Script es un lenguaje de escripts que se usa en páginas web (ligero) Java es un lenguaje de programación orientada a objetos (robusto) !Java Script no es Java!

3 Principalmente para hacer validaciones en paginas html. Ayuda para mejorar la presentación de una página web. Para hacer cálculos sencillos. Para enviar mensajes al usuario, alertas, errores, warnings y ayuda. ?Para que sirve JavaScript?

4 To insert a JavaScript into an HTML page, use the tag. The and tells where the JavaScript starts and ends. The lines between the and contain the JavaScript : alert("My First JavaScript"); The Tag

5 1. Abrir Note Pad ++ 2.Copiar el siguiente texto y guardarlo en un archivo llamado ejercicio.html 3. Abrir este archivo con Internet Explorer. document.write("Academia AMS"); Ejercicio 1.- JavaScript in

6 In this example, a JavaScript function is placed in the section of an HTML page. The function is called when a button is clicked: function myFunction() { document.getElementById("demo").innerHTML="My First JavaScript Function"; } My Web Page Un parrafo Prueba Ejercicio 2.- A JavaScript Function in

7 Entrar a la siguiente liga: http://w3schools.com/js/js_examples.asp Basic JavaScript Examples Write to the Document with JavaScript Change HTML elements with JavaScript An external JavaScriptWrite to the Document with JavaScript Change HTML elements with JavaScript An external JavaScript JavaScript Statements, Comments and Blocks JavaScript statements. JavaScript blocks. Single line comments. Multiple lines comments. Single line comment to prevent execution. Multiple lines comment to prevent execution.JavaScript statements. JavaScript blocks. Single line comments. Multiple lines comments. Single line comment to prevent execution. Multiple lines comment to prevent execution. Ejercicios en la web. Basicos.

8 JavaScript Variables Declare a variable, assign a value to it, and display it JavaScript Conditional If... Else If statement If...else statement Random link Switch statementIf statement If...else statement Random link Switch statement JavaScript Popup Boxes Alert box Alert box with line breaks Confirm box Prompt boxAlert box Alert box with line breaks Confirm box Prompt box Ejercicios. Intermedios

9 JavaScript Functions Call a function Function with an argument Function with an argument 2 Function that returns a value Function with arguments, that returns a valueCall a function Function with an argument Function with an argument 2 Function that returns a value Function with arguments, that returns a value Examples explained JavaScript Loops For loop Looping through HTML headers While loop Do While loop Break a loop Break and continue a loop Use a for...in statement to loop through the elements of an objectFor loop Looping through HTML headers While loop Do While loop Break a loop Break and continue a loop Use a for...in statement to loop through the elements of an object Ejercicios. Avanzados

10 1.-Crear una página HTML con los siguientes campos: Nombre: Empresa: E-mail: Repetir E-mail: Y un botón para enviar los datos. 2.- Crear una función de javaScript que valide que todos los campos deben ser llenados, si el usuario no capturo algún campo enviar un mensaje de error. Si el usuario capturo todos datos enviar un mensaje de OK. 3.- Asociar el botón de enviar con la función de JavaScript TAREA: Crear una función para validar que el email y el campo repetir email, sean iguales. Crear una función para validar que el correo tenga un formato valido. Ejercicio Práctico.


Descargar ppt "JavaScript Programación Web. Java Script es un lenguaje de escripts que se usa en páginas web (ligero) Java es un lenguaje de programación orientada a."

Presentaciones similares


Anuncios Google