CIS 375—Web App Dev II JavaScript I. 2 Introduction to DTD JavaScript is a scripting language developed by ________. A scripting language is a lightweight.

Slides:



Advertisements
Similar presentations
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Advertisements

The Web Warrior Guide to Web Design Technologies
Computer Science 103 Chapter 3 Introduction to JavaScript.
JavaScript- Introduction. What it is and what it does? What it is? It is NOT Java It is NOT Server-side programming Users can see code It is a client-side.
Tutorial 10 Programming with JavaScript
CS 299 – Web Programming and Design Overview of JavaScript and DOM Instructor: Dr. Fang (Daisy) Tang.
XP Tutorial 1 New Perspectives on JavaScript, Comprehensive1 Introducing JavaScript Hiding Addresses from Spammers.
The Information School of the University of Washington Oct 20fit programming1 Programming Basics INFO/CSE 100, Fall 2006 Fluency in Information Technology.
Introduction to JavaScript. Aim To enable you to write you first JavaScript.
آموزش طراحی وب سایت جلسه دهم – جاوا اسکریپت 1 تدریس طراحی وب برای اطلاعات بیشتر تماس بگیرید تاو شماره تماس: پست الکترونیک :
JavaScript CMPT 281. Outline Introduction to JavaScript Resources What is JavaScript? JavaScript in web pages.
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
JavaScript Informatics for economists I. Introduction Programming language used in web pages. Simple and easy to use – written in HTML document. Client.
DHTML: Dynamic HTML Internet Technology1. What is DHTML? A collection of enhancements to HTML ► To create dynamic and interactive websites Combination.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
Introduction. Document Structure Overview  XML declaration (prolog)  Document type declaration  Root element (namespace)  Document header  Document.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
What is Java Script? An extension to HTML. An extension to HTML. Allows authors to incorporate some functionality in their web pages. (without using CGI.
Javascript. Outline Introduction Fundamental of JavaScript Javascript events management DOM and Dynamic HTML (DHTML)
1 JavaScript in Context. Server-Side Programming.
TUTORIAL 10: PROGRAMMING WITH JAVASCRIPT Session 2: What is JavaScript?
Tutorial 10 Programming with JavaScript. XP Objectives Learn the history of JavaScript Create a script element Understand basic JavaScript syntax Write.
Dynamic Web Pages & JavaScript. Dynamic Web Pages Dynamic = Change Dynamic Web Pages are web pages that change. More than just moving graphics around.
Introduction.  The scripting language most often used for client-side web development.  Influenced by many programming languages, easier for nonprogrammers.
JavaScript - A Web Script Language Fred Durao
Dr. Qusai Abuein1 Internet & WWW How to program Chap.(6) JavaScript:Introduction to Scripting.
1 JavaScript
JavaScript Syntax, how to use it in a HTML document
Chapter 10: JavaScript Functions CIS 275—Web Application Development for Business I.
JavaScript. JavaScript is the programming language of HTML and the Web. Easy to learn One of the 3 languages of all developers MUST learn: 1. HTML to.
JavaScript Introduction.  JavaScript is a scripting language  A scripting language is a lightweight programming language  A JavaScript can be inserted.
COMP403 Web Design JAVA SCRİPTS Tolgay KARANFİLLER.
1 JavaScript in Context. Server-Side Programming.
HTML Overview Part 5 – JavaScript 1. Scripts 2  Scripts are used to add dynamic content to a web page.  Scripts consist of a list of commands that execute.
Java Script About Java Script Document Object Model Incorporating JavaScript Adding JavaScript to HTML Embedding a Javascript External Scripts Javascript.
CIS 3.5 Lecture 2.3 "Introduction to JavaScript".
Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing a Line of Text in a Web Page 7.3 Another JavaScript.
In God we trust Learning Java Script. Java Script JavaScript is the scripting language of the Web! JavaScript is used in millions of Web pages to improve.
Introduction to JavaScript CSc 2320 Fall 2014 Disclaimer: All words, pictures are adopted from “Simple JavaScript”by Kevin Yank and Cameron Adams and also.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
Web Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.
JavaScript. JavaScript Introduction JavaScript is the world's most popular programming language. It is the language for HTML and the web, for servers,
Understanding JavaScript and Coding Essentials Lesson 8.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
Chapter 5: Intro to Scripting CIS 275—Web Application Development for Business I.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Java Script Programming. Review: Event Handling Text Box Title: Button.
JavaScript 101 Lesson 6: Introduction to Functions.
JavaScript and AJAX 2nd Edition Tutorial 1 Programming with JavaScript.
JavaScript: A short introduction Joseph Lee Created by Joseph Lee.
INTERNET APPLICATIONS CPIT405 JavaScript Instructor: Rasha AlOmari
Web Programming Java Script-Introduction. What is Javascript? JavaScript is a scripting language using for the Web. JavaScript is a programming language.
 2001 Prentice Hall, Inc. All rights reserved. Outline 1 JavaScript.
JAVA SCRIPT HOW TO PROGRAM DR. JOHN ABRAHAM PROFESSOR UTPA SOME SLIDES FROM W3SCHOOLS.
Java Script Introduction. Java Script Introduction.
JAVA Script : Functions Ashima Wadhwa
Barb Ericson Georgia Institute of Technology May 2006
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
JavaScript.
JavaScript Introduction
JavaScript an introduction.
Your 1st Programming Assignment
CS105 Introduction to Computer Concepts
Tutorial 10 Programming with JavaScript
For this assignment, copy and past the XHTML to a notepad file with the .html extension. Then add the code I ask for to complete the problems.
Tutorial 10: Programming with javascript
Java Script Siddharth Srivastava.
JavaScript: Introduction to Scripting
CS105 Introduction to Computer Concepts JavaScript
Presentation transcript:

CIS 375—Web App Dev II JavaScript I

2 Introduction to DTD JavaScript is a scripting language developed by ________. A scripting language is a lightweight ____________ language. JavaScript can be inserted into an _______ page. JavaScript is used to make web pages more dynamic and ___________. JavaScript is NOT Java, but shares some of the same ________.

3 Simple JavaScript Inserting simple JavaScript into a simple web page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " document.write("Hello World!")

4 Handling Older Browsers You should write code like this in case the user has a browser before version 3.0: <!-- document.write("Hello World!") //--> A newer browser will ignore the <!-- and the ____. An older browser will ignore the, and everything between the <!-- and the _____.

5 JavaScript Where To… Scripts in the body section will execute when the page ______, in the head section when ________. function message(){ alert("This alert box was called with the onload event") }

6 JavaScript in an External File Scripts can be stored in an external file with a _____ extension. The contents of myfile.js might be the following: document.write("This script is external")

7 Variables Variables are used to _______ data. Rules for variable names: Variable names are _______ sensitive They must begin with a letter or the _________ character Example: var name = “Richard Johnson" Variables declared in a function are local to that function. They are destroyed when the function is ________. Variables declared outside a function are available to all functions on the page. They are destroyed when the page is _______.

8 Example of Variable Use <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " var name = “Richard Johnson" document.write(name) document.write(" "+name+" ") This example declares a variable, assigns a value to it, and then displays the variable. Then the variable is displayed one more time, only this time as a heading.

9 JavaScript Operators A complete listing of JavaScript operators can be found at These are identical to ______ operators.

10 JavaScript Functions A function contains some code that will be executed by an _______ or a call. Here is how to call JavaScript’s alert method: alert("This is an alert!")

11 Example of Function Call function myFunction(){ alert("HELLO") } By pressing the button, a function will be called. The function will alert a message.

Function w/ Arguments, Return <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " function total(numberA, numberB){ return numberA + numberB } document.write(total(2,3))